یک منبع i18nRegion یک منطقه جغرافیایی را مشخص می کند که کاربر YouTube می تواند به عنوان منطقه محتوای ترجیحی انتخاب کند. منطقه محتوا را میتوان به عنوان محلی محتوا نیز نامید. برای وب سایت YouTube، یک منطقه محتوا می تواند به طور خودکار بر اساس اکتشافاتی مانند دامنه YouTube یا مکان IP کاربر انتخاب شود. کاربر همچنین می تواند به صورت دستی منطقه محتوای مورد نظر را از پاورقی سایت YouTube انتخاب کند.
هر منبع i18nRegion یک کد منطقه و یک نام را مشخص می کند. هنگام فراخوانی متدهای API مانند search.list ، videos.list ، activities.list و videoCategories.list می توان از کد منطقه به عنوان مقدار پارامتر regionCode استفاده کرد.
روش ها
API از روش های زیر برای منابع i18nRegions پشتیبانی می کند:
تاریخ آخرین بهروزرسانی 2024-12-01 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-12-01 بهوقت ساعت هماهنگ جهانی."],[[["An i18nRegion resource specifies a geographic area that YouTube users can choose as their preferred content region."],["The i18nRegion includes a region code and a name, and the code can be used when calling API methods such as `search.list`."],["The YouTube API's `i18nRegions.list` method allows retrieval of a list of supported content regions."],["Each i18nRegion resource includes an `id`, `etag`, and `snippet` containing the region code (`gl`) and region `name`."]]],["The `i18nRegion` resource represents a YouTube content region, selectable by users or automatically determined. Each resource has a unique ID, region code, and name. The region code is usable in API methods like `search.list`. The resource can be retrieved via the `i18nRegions.list` method, which provides the supported content regions. The resource's properties include `kind` (`youtube#i18nRegion`), `etag`, `id`, and a `snippet` object containing the region's code (`gl`) and name.\n"]]