Amplify has re-imagined the way frontend developers build fullstack applications. Develop and deploy without the hassle.

Page updated May 2, 2024

Translate language

Note: Make sure to complete the getting started section first, where you will set up the IAM roles with the right policy actions

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.