> ## 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-CN/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfablocalplayer/index.md)
- [PlayFabLocalPlayer.IsChatControlAvailable](/zh-CN/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfablocalplayer/properties/playfabunityischatcontrolavailable.md)
- [PlayFabLocalPlayer.PlatformSpecificUserId](/zh-CN/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfablocalplayer/properties/playfabunityplatformspecificuserid.md)
- [PlayFab Party 发行说明](/zh-CN/services/playfab/multiplayer/networking/release-notes.md)
- [PartyLocalChatControl::GetLanguage](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_getlanguage.md)
