> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 遊戲支援與不支援的地區設定

> 在 GDK 套件的 Resources 中規劃支援與不支援的 XBOX 地區設定,使用 xbconfig preferredlanguages 進行測試,並新增遊戲內語言選擇器。

請在套件的 `Resources` 區段中加入您打算支援的每個地區設定,即使 XBOX 尚未支援使用者選取該地區設定也一樣。使用者無法透過主機 UI 選取不支援的地區設定,但將它們包含在套件中,代表一旦新增這些地區設定,遊戲就會自動支援它們。

您也可以選擇提供遊戲內語言選擇器,讓使用者能覆寫主機的語言。

## 測試不支援的地區設定

1. 從命令列強制設定地區設定:
   ```cmd theme={null}
   xbconfig preferredlanguages=ja-JP
   ```
   設定地區設定且該地區設定存在於資訊清單中時,您就可以同時測試資訊清單當地語系化的資源與遊戲內資源。
2. 新增暫時性的遊戲內語言選擇器。這只會測試遊戲內資源。

## 相關 API 文件

* [XGameRuntime 功能參考](/zh-TW/reference/system/xgameruntimefeature/xgameruntimefeature_members):`XGameRuntimeLocale`
* [MicrosoftGame.config 元素參考](/zh-TW/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc):支援地區設定的資訊清單結構描述


## Related topics

- [當地語系化與全球化概觀](/zh-TW/build/game-principles/localization.md)
- [Economy v2 當地語系化](/zh-TW/services/playfab/economy-monetization/economy-v2/catalog/localization.md)
- [支援的 NLS 函式](/zh-TW/build/game-principles/localization/supported-nls-apis.md)
- [判斷主機的地區設定與語言](/zh-TW/build/game-principles/localization/determining-console-locale.md)
- [光碟概觀](/zh-TW/publishing/game-publishing/concepts/discs-overview.md)
