Skip to main content
Version: 2.1

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​