Table of Contents

TTMSFNCCustomCloudTranslation.GetSupportedLanguages Method

Requests the list of languages supported by the selected service. The request runs asynchronously; the result is delivered through the callback and the supported-languages event.

API unit family: TMSFNCCloudTranslation Declaring type: TTMSFNCCustomCloudTranslation

Syntax

procedure GetSupportedLanguages(const ALanguage: string = 'en'; ACallback: TTMSFNCCloudTranslationGetSupportedLanguagesCallback = nil); virtual;

Remarks

Requires a valid APIKey; otherwise an exception is raised. The returned languages are also stored in SupportedLanguages.

Parameters

Name Description
ALanguage Language code in which the language names are returned. Defaults to 'en'.
ACallback Optional callback invoked when the request completes.