Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
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 (世界標準時間)。"],[],["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"]]