> 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.containslocalizedstring.md).

# ContainsLocalizedString(string)

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

## Summary

Returns a boolean value indicating whether this [Localization](/api/csharp/yarn.unity/yarn.unity.localization.md) contains a string with the given key.

```csharp
public bool ContainsLocalizedString(string key);
```

## Parameters

| Name         | Description            |
| ------------ | ---------------------- |
| `string` key | The key to search for. |

## Returns

`true` if this Localization has a string for the given key; `false` otherwise.
