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

# Localization

Class in [Yarn.Unity](/3.1/api/csharp/yarn.unity.md)

Inherits from `UnityEngine.ScriptableObject`

## Summary

```csharp
public class Localization : ScriptableObject
```

## Classes

| Name                                                                                                                           | Description |
| ------------------------------------------------------------------------------------------------------------------------------ | ----------- |
| [LocalizationTableEntry](/3.1/api/csharp/yarn.unity/yarn.unity.localization/yarn.unity.localization.localizationtableentry.md) |             |

## Methods

| Name                                                                                                                                                                    | Description                                                                                                                                                 |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AddLocalizedString(string,string)](/3.1/api/csharp/yarn.unity/yarn.unity.localization/yarn.unity.localization.addlocalizedstring.md)                                   | Adds a new string to the runtime string table.                                                                                                              |
| [AddLocalizedStrings(IEnumerable\<KeyValuePair\<string, string>>)](/3.1/api/csharp/yarn.unity/yarn.unity.localization/yarn.unity.localization.addlocalizedstrings-1.md) | Adds a collection of strings to the runtime string table.                                                                                                   |
| [AddLocalizedStrings(IEnumerable)](/3.1/api/csharp/yarn.unity/yarn.unity.localization/yarn.unity.localization.addlocalizedstrings-2.md)                                 | Adds a collection of strings to the runtime string table.                                                                                                   |
| [Clear()](/3.1/api/csharp/yarn.unity/yarn.unity.localization/yarn.unity.localization.clear.md)                                                                          |                                                                                                                                                             |
| [ContainsLocalizedObject(string)](/3.1/api/csharp/yarn.unity/yarn.unity.localization/yarn.unity.localization.containslocalizedobject.md)                                |                                                                                                                                                             |
| [ContainsLocalizedString(string)](/3.1/api/csharp/yarn.unity/yarn.unity.localization/yarn.unity.localization.containslocalizedstring.md)                                | Returns a boolean value indicating whether this [Localization](/3.1/api/csharp/yarn.unity/yarn.unity.localization.md) contains a string with the given key. |
| [GetLineIDs()](/3.1/api/csharp/yarn.unity/yarn.unity.localization/yarn.unity.localization.getlineids.md)                                                                | Gets the line IDs present in this localization.                                                                                                             |
| [GetLocalizedObjectAsync(string)](/3.1/api/csharp/yarn.unity/yarn.unity.localization/yarn.unity.localization.getlocalizedobjectasync.md)                                |                                                                                                                                                             |
| [GetLocalizedString(string)](/3.1/api/csharp/yarn.unity/yarn.unity.localization/yarn.unity.localization.getlocalizedstring.md)                                          |                                                                                                                                                             |

## Properties

| Name                                                                                                                         | Description                                                                                                                                                                                                         |
| ---------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [UsesAddressableAssets](/3.1/api/csharp/yarn.unity/yarn.unity.localization/yarn.unity.localization.usesaddressableassets.md) | Gets a value indicating whether this [Localization](/3.1/api/csharp/yarn.unity/yarn.unity.localization.md) makes use of Addressable Assets ( `true` ), or if it stores its assets as direct references ( `false` ). |
