یک منبع i18nLanguage زبان برنامه ای را که وب سایت YouTube از آن پشتیبانی می کند، شناسایی می کند. زبان برنامه را می توان به عنوان زبان UI نیز نامید. برای وبسایت YouTube، یک زبان برنامه میتواند بهطور خودکار بر اساس تنظیمات حساب Google، زبان مرورگر یا مکان IP انتخاب شود. کاربر همچنین می تواند به صورت دستی زبان UI مورد نظر را از پاورقی سایت YouTube انتخاب کند.
هر منبع i18nLanguage یک کد زبان و یک نام را مشخص می کند. کد زبان را می توان به عنوان مقدار پارامتر hl هنگام فراخوانی متدهای API مانند videoCategories.list و guideCategories.list استفاده کرد.
روش ها
API از روش های زیر برای منابع i18nLanguages پشتیبانی می کند:
تاریخ آخرین بهروزرسانی 2024-11-15 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-11-15 بهوقت ساعت هماهنگ جهانی."],[[["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"]]