> 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/api/csharp/yarn.unity/yarn.unity.yarnproject/yarn.unity.yarnproject.getlocalization.md).

# GetLocalization(string)

Method in [YarnProject](/api/csharp/yarn.unity/yarn.unity.yarnproject.md)

## Summary

Gets a Localization given a locale code.

```csharp
public Localization GetLocalization(string localeCode)
```

## Parameters

| Name                | Description                                                                                      |
| ------------------- | ------------------------------------------------------------------------------------------------ |
| `string` localeCode | The locale code to find a [Localization](/api/csharp/yarn.unity/yarn.unity.localization.md) for. |

## Returns

The Localization if one is found for the locale `localeCode` ; [baseLocalization](/api/csharp/yarn.unity/yarn.unity.yarnproject/yarn.unity.yarnproject.baselocalization.md) otherwise.
