I18nLanguages
Stay organized with collections
Save and categorize content based on your preferences.
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 could be automatically selected based on Google Account settings, browser language, or IP location. A user could also manually select the desired UI language from the YouTube site footer.
Each i18nLanguage
resource identifies a language code and a name. The language code can be used as the value of the hl
parameter when calling API methods like videoCategories.list
and guideCategories.list
.
Methods
The API supports the following methods for i18nLanguages
resources:
- list
- Returns a list of application languages that the YouTube website supports.
Try it now.
Resource representation
The following JSON structure shows the format of a i18nLanguages
resource:
{
"kind": "youtube#i18nLanguage",
"etag": etag,
"id": string,
"snippet": {
"hl": string,
"name": string
}
}
Properties
The following table defines the properties that appear in this resource:
Properties |
kind |
string
Identifies the API resource's type. The value will be youtube#i18nLanguage . |
etag |
etag
The 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 its language code and name. |
snippet.hl |
string
A BCP-47 code that uniquely identifies a language. |
snippet.name |
string
The name of the language as it is written in the language specified using the i18nLanguage.list method's hl parameter. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-11-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-11-04 UTC."],[[["The i18nLanguage resource identifies a language supported by the YouTube website, which can be automatically set based on Google Account settings, browser language, or IP location, or manually selected by the user."],["Each i18nLanguage resource includes a language code and a name, with the language code being usable as the value for the `hl` parameter in API calls like `videoCategories.list` and `guideCategories.list`."],["The i18nLanguages resource can be retrieved using the `i18nLanguages.list` method, which provides a list of supported application languages."],["The resource is represented in JSON format, containing properties such as `kind` (identifying the resource type), `etag`, `id`, and a `snippet` object with details like the `hl` code and the language `name`."]]],["The `i18nLanguage` resource details supported application languages for YouTube, also known as UI languages. Each resource includes a language code (`hl`) and a name. The language can be automatically selected based on Google Account settings, browser language, or IP location, or manually chosen. The language code can be used in API methods. The `i18nLanguages.list` method returns a list of these languages, defined by their ID, and snippet data, which includes the `hl` code and name.\n"]]