Translate / Client / list_languages

list_languages#

Translate.Client.list_languages(**kwargs)#

Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports.

See also: AWS API Documentation

Request Syntax

response = client.list_languages(
    DisplayLanguageCode='de'|'en'|'es'|'fr'|'it'|'ja'|'ko'|'pt'|'zh'|'zh-TW',
    NextToken='string',
    MaxResults=123
)
Parameters:
  • DisplayLanguageCode (string) – The language code for the language to use to display the language names in the response. The language code is en by default.

  • NextToken (string) – Include the NextToken value to fetch the next group of supported languages.

  • MaxResults (integer) – The maximum number of results to return in each response.

Return type:

dict

Returns:

Response Syntax

{
    'Languages': [
        {
            'LanguageName': 'string',
            'LanguageCode': 'string'
        },
    ],
    'DisplayLanguageCode': 'de'|'en'|'es'|'fr'|'it'|'ja'|'ko'|'pt'|'zh'|'zh-TW',
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • Languages (list) –

      The list of supported languages.

      • (dict) –

        A supported language.

        • LanguageName (string) –

          Language name of the supported language.

        • LanguageCode (string) –

          Language code for the supported language.

    • DisplayLanguageCode (string) –

      The language code passed in with the request.

    • NextToken (string) –

      If the response does not include all remaining results, use the NextToken in the next request to fetch the next group of supported languages.

Exceptions