List
|
|||||
|
|
||||
Returns a list of supported languages for translation
Authorization
To use this building block you will have to grant access to at least one of the following scopes:
- Translate text from one language to another using Google Translate
- View and manage your data across Google Cloud Platform services
Input
This building block consumes 2 input parameters
| Name | Format | Description |
|---|---|---|
model |
STRING |
The model type for which supported languages should be returned |
target |
STRING |
The language to use to return localized, human readable names of supported languages |
= Parameter name
= Format
|
model STRING The model type for which supported languages should be returned |
|
target STRING The language to use to return localized, human readable names of supported languages |
Output
This building block provides 4 output parameters
| Name | Format | Description |
|---|---|---|
data |
OBJECT |
|
data.languages[] |
OBJECT |
|
data.languages[].language |
STRING |
Supported language code, generally consisting of its ISO 639-1 identifier. (E.g. 'en', 'ja'). In certain cases, BCP-47 codes including language + region identifiers are returned (e.g. 'zh-TW' and 'zh-CH') |
data.languages[].name |
STRING |
Human readable name of the language localized to the target language |
= Parameter name
= Format
|
data OBJECT |
|
data.languages[] OBJECT |
|
data.languages[].language STRING Supported language code, generally consisting of its ISO 639-1 identifier. (E.g. 'en', 'ja'). In certain cases, BCP-47 codes including language + region identifiers are returned (e.g. 'zh-TW' and 'zh-CH') |
|
data.languages[].name STRING Human readable name of the language localized to the target language |