I18nLanguages
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
i18nLanguage
資源會識別 YouTube 網站支援的應用程式語言,應用程式語言也可以稱為 UI 語言。在 YouTube 網站上,應用程式語言會根據 Google 帳戶設定、瀏覽器語言或 IP 位置自動選取。使用者也可以從 YouTube 網站頁尾,手動選取想要的使用者介面語言。
每項 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 參數指定的語言名稱,以該語言編寫。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-21 (世界標準時間)。
[[["容易理解","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 (世界標準時間)。"],[[["\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,[]]