# ContainsLocalizedString(string)

Method in [Localization](https://docs.yarnspinner.dev/2.3/api/csharp/yarn.unity/yarn.unity.localization)

## Summary

Returns a boolean value indicating whether this [Localization](https://docs.yarnspinner.dev/2.3/api/csharp/yarn.unity/yarn.unity.localization) 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.
