> ## 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.

# PlayFabLocalPlayer.LanguageCode

> Party Unity SDK 中 PlayFabLocalPlayer.LanguageCode 的參考，用於取得或設定套用至本機玩家聊天控制項的 BCP-47 語言代碼。

# LanguageCode

取得或設定玩家的語言代碼。

目前，只有在建立或加入 Party 網路之前設定語言才會生效。

```csharp theme={null}
public string PlayFabLocalPlayer.LanguageCode { get; set; }
```

## 屬性值

LanguageCode

[string](https://learn.microsoft.com/en-us/dotnet/api/system.string?view=netcore-3.1\&preserve-view=true)

與玩家相關聯的 BCP 47 語言代碼。


## Related topics

- [PlayFabLocalPlayer 類別](/zh-TW/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfablocalplayer/index.md)
- [PlayFabLocalPlayer.IsChatControlAvailable](/zh-TW/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfablocalplayer/properties/playfabunityischatcontrolavailable.md)
- [PlayFabLocalPlayer.PlatformSpecificUserId](/zh-TW/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfablocalplayer/properties/playfabunityplatformspecificuserid.md)
- [PlayFab Party 版本資訊](/zh-TW/services/playfab/multiplayer/networking/release-notes.md)
- [PartyLocalChatControl::GetLanguage](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_getlanguage.md)
