I18nLanguages
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
משאב i18nLanguage
מזהה שפת אפליקציה שאתר YouTube תומך בה. שפת האפליקציה יכולה להיקרא גם שפת ממשק המשתמש. באתר YouTube, שפת האפליקציה עשויה להיבחר באופן אוטומטי על סמך ההגדרות בחשבון Google, שפת הדפדפן או מיקום כתובת ה-IP. משתמשים יכולים גם לבחור באופן ידני את שפת ממשק המשתמש הרצויה בכותרת התחתונה של אתר YouTube.
כל משאב i18nLanguage
מזהה קוד שפה ושם. אפשר להשתמש בקוד השפה כערך של הפרמטר hl
בקריאות לשיטות API כמו videoCategories.list
ו-guideCategories.list
.
Methods
ה-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. |
snippet |
object
האובייקט snippet מכיל פרטים בסיסיים על שפת ה-i18n, כמו קוד השפה והשם שלה. |
snippet.hl |
string
קוד BCP-47 שמזהה שפה באופן ייחודי. |
snippet.name |
string
השם של השפה כפי שהוא כתוב בשפה שצוינה באמצעות הפרמטר hl של השיטה i18nLanguage.list . |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-29 (שעון 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"]],["עדכון אחרון: 2024-11-29 (שעון 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"]]