2022/06/29 - Amazon Translate - 1 new api methods
Changes Added ListLanguages API which can be used to list the languages supported by Translate.
Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports.
See also: AWS API Documentation
Request Syntax
client.list_languages( DisplayLanguageCode='de'|'en'|'es'|'fr'|'it'|'ja'|'ko'|'pt'|'zh'|'zh-TW', NextToken='string', MaxResults=123 )
string
The language code for the language to use to display the language names in the response. The language code is en by default.
string
Include the NextToken value to fetch the next group of supported languages.
integer
The maximum number of results to return in each response.
dict
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.