Translate language
Working with the API
Translate text from one source language to a destination language.
import { Predictions } from '@aws-amplify/predictions';
const result = await Predictions.convert({ translateText: { source: { text: textToTranslate, language : "es" }, targetLanguage: "en" }})
To view the complete list of supported languages refer to Supported languages and language codes.