> 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.localization/yarn.unity.localization.addlocalizedstring.md).

# AddLocalizedString(string,string)

Method in [Localization](/api/csharp/yarn.unity/yarn.unity.localization.md)

## Summary

Adds a new string to the runtime string table.

```csharp
public void AddLocalizedString(string key, string value)
```

## Remarks

This method updates the localisation's runtime string table, which is useful for adding or changing the localisation during gameplay or in a built player. It doesn't modify the asset on disk, and any changes made will be lost when gameplay ends.

## Parameters

| Name           | Description                                                                       |
| -------------- | --------------------------------------------------------------------------------- |
| `string` key   | The key for this string (generally, the line ID.)                                 |
| `string` value | The user-facing text for this string, in the language specified by `LocaleCode` . |
