> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/2.3/api/csharp/yarn.unity/yarn.unity.lineproviderbehaviour/yarn.unity.lineproviderbehaviour.localecode.md).

# LocaleCode

Property in [LineProviderBehaviour](/2.3/api/csharp/yarn.unity/yarn.unity.lineproviderbehaviour.md)

## Summary

Gets the user's current locale identifier, as a BCP-47 code.

```csharp
public abstract string LocaleCode { get; }
```

## Remarks

This value is used by the [DialogueRunner](/2.3/api/csharp/yarn.unity/yarn.unity.dialoguerunner.md) to control how certain replacement markers behave (for example, the `[plural]` marker, which behaves differently depending on the user's locale.)
