I18nLanguages
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
i18nLanguage
リソースは、YouTube ウェブサイトがサポートするアプリケーション言語を識別します。アプリケーション言語は、UI 言語とも呼ばれます。YouTube ウェブサイトの場合、アプリケーションの言語は、Google アカウントの設定、ブラウザの言語、IP の場所に基づいて自動的に選択されることがあります。ユーザーは、YouTube サイトのフッターから希望する UI 言語を手動で選択することもできます。
各 i18nLanguage
リソースは、言語コードと名前を識別します。言語コードは、videoCategories.list
や guideCategories.list
などの API メソッドを呼び出すときに hl
パラメータの値として使用できます。
メソッド
この API は、i18nLanguages
リソースの次のメソッドをサポートしています。
- list
- YouTube ウェブサイトがサポートするアプリケーション言語のリストを返します。
今すぐ試す
リソース表現
次の JSON 構造は、i18nLanguages
リソースの形式を示しています。
{
"kind": "youtube#i18nLanguage",
"etag": etag,
"id": string,
"snippet": {
"hl": string,
"name": string
}
}
プロパティ
次の表は、このリソースで使用されているプロパティの定義を示したものです。
プロパティ |
kind |
string
API リソースのタイプを指定します。値は youtube#i18nLanguage になります。 |
etag |
etag
このリソースの ETag。 |
id |
string
YouTube が i18n 言語を一意に識別するために使用する ID。 |
snippet |
object
snippet オブジェクトには、言語コードや名前など、i18n 言語に関する基本情報が格納されます。 |
snippet.hl |
string
言語を一意に識別する BCP-47 コード。 |
snippet.name |
string
i18nLanguage.list メソッドの hl パラメータで指定された言語で書かれた言語の名前。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-21 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-08-21 UTC。"],[[["\u003cp\u003eThe 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.\u003c/p\u003e\n"],["\u003cp\u003eEach i18nLanguage resource includes a language code and a name, with the language code being usable as the value for the \u003ccode\u003ehl\u003c/code\u003e parameter in API calls like \u003ccode\u003evideoCategories.list\u003c/code\u003e and \u003ccode\u003eguideCategories.list\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe i18nLanguages resource can be retrieved using the \u003ccode\u003ei18nLanguages.list\u003c/code\u003e method, which provides a list of supported application languages.\u003c/p\u003e\n"],["\u003cp\u003eThe resource is represented in JSON format, containing properties such as \u003ccode\u003ekind\u003c/code\u003e (identifying the resource type), \u003ccode\u003eetag\u003c/code\u003e, \u003ccode\u003eid\u003c/code\u003e, and a \u003ccode\u003esnippet\u003c/code\u003e object with details like the \u003ccode\u003ehl\u003c/code\u003e code and the language \u003ccode\u003ename\u003c/code\u003e.\u003c/p\u003e\n"]]],["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"],null,[]]