Translate API v2, gRPC: TranslationService.ListLanguages

Retrieves the list of supported languages.

gRPC request

rpc ListLanguages (ListLanguagesRequest) returns (ListLanguagesResponse)

ListLanguagesRequest

{
          "folder_id": "string"
        }
        

Field

Description

folder_id

string

ID of the folder to which you have access.
Required for authorization with a user account.
Do not specify this field if you make the request on behalf of a service account.

ListLanguagesResponse

{
          "languages": [
            {
              "code": "string",
              "name": "string"
            }
          ]
        }
        

Field

Description

languages[]

Language

List of supported languages.

Language

Field

Description

code

string

The language code.
Most languages are specified in ISO 639-1 format (for example, ru), but the field are not limited to it.

name

string

The name of the language (for example, English).

Предыдущая
Следующая