REST Resource: i18nLanguages

Resource: I18nLanguage

An i18nLanguage resource identifies an application language that the YouTube website supports. The application language can also be referred to as a UI language. For the YouTube website, an application language can be automatically selected based on Google Account settings, browser language, or IP location, or manually selected from the YouTube site footer.

Each i18nLanguage resource identifies a language code and a localized name. The language code can be used as the value of the hl parameter when calling API methods such as videoCategories.list, i18nRegions.list, videos.list, and channels.list.

JSON representation
{
  "kind": string,
  "etag": string,
  "id": string,
  "snippet": {
    "hl": string,
    "name": string
  }
}
Fields
kind

string

Identifies what kind of resource this is. Value: the fixed string "youtube#i18nLanguage".

etag

string

Etag of this resource.

id

string

The ID that YouTube uses to uniquely identify the i18n language.

snippet

object

The snippet object contains basic details about the i18n language, such as language code and human-readable name.

snippet.hl

string

A BCP-47 code that uniquely identifies a language.

snippet.name

string

The human-readable name of the language as written in the language specified by the i18nLanguages.list method's hl parameter.

Methods

list

Returns a list of application languages that the YouTube website supports.