Amazon Translate
Amazon Translate provides real-time text translation between supported languages.
See Amazon Translate Developer Guide for general guidance using Translate.
API Access
The ITranslateClient interface and its implementation TTranslateClient provides access to all Translate operations.
Translating Text
Use TranslateText to translate a string between languages:
var
Client: ITranslateClient;
Response: ITranslateTranslateTextResponse;
begin
Client := TTranslateClient.Create;
Response := Client.TranslateText('en', 'fr', 'Hello, world!');
Writeln(Response.TranslatedText);
end.
Use auto as the source language code to let Amazon
Translate detect the source language automatically.
Other Operations
- ListLanguages lists supported languages and language codes.
- StartTextTranslationJob starts an asynchronous batch translation job for translating documents stored in S3.
- Custom terminology can be managed with ImportTerminology, GetTerminology, ListTerminologies, and DeleteTerminology.