Need to configure your backend?See Build a Backend →
言語を翻訳する
APIの使用
ソース言語からターゲット言語にテキストを翻訳します。
import { Predictions } from '@aws-amplify/predictions';
const result = await Predictions.convert({ translateText: { source: { text: textToTranslate, language : "es" }, targetLanguage: "en" }})サポートされている言語の完全なリストを確認するには、サポートされている言語と言語コードを参照してください。