# LocalizedStringGroup

> A localized string list that combines several localized string references.

## Definition

* **Type:** Class
* **Namespace:** [Unity.Localization](/engine/6000.7/script-reference/unity/localization.md)
* **Assembly:** UnityEngine.LocalizationRuntimeModule
* **Implements:** [ILocalizedStringList](/engine/6000.7/script-reference/unity/localization/ilocalizedstringlist.md)

```csharp
public class LocalizedStringGroup : ILocalizedStringList
```

## Remarks

Each item is its own [LocalizedString](/engine/6000.7/script-reference/unity/localization/localizedstring.md), so the items can come from different entries or collections. ListChanged is raised once every item has resolved, and again when any item's value changes. The subscription does not observe edits to [LocalizedStringGroup.Strings](/engine/6000.7/script-reference/unity/localization/localizedstringgroup/strings.md); unsubscribe and resubscribe after changing the list.

Additional Resources: [ILocalizedStringList](/engine/6000.7/script-reference/unity/localization/ilocalizedstringlist.md), [LocalizedStringList](/engine/6000.7/script-reference/unity/localization/localizedstringlist.md)

Aggregate several entries into one list.

## Examples

```csharp
using System.Collections.Generic;
using Unity.Localization;
using UnityEngine;

namespace Unity.Localization.Samples
{
    public class LocalizedStringGroupExample
    {
        public async Awaitable Load()
        {
            var yes = new LocalizedString();
            yes.SetReference("My Strings", "YES");
            var no = new LocalizedString();
            no.SetReference("My Strings", "NO");

            var group = new LocalizedStringGroup();
            group.Strings.Add(yes);
            group.Strings.Add(no);
            List<string> values = await group.GetLocalizedListAsync();
            Debug.Log(values.Count);
        }
    }
}
```

## Properties

| Property                                                                                      | Description                                                 |
| --------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
| [Strings](/engine/6000.7/script-reference/unity/localization/localizedstringgroup/strings.md) | The localized strings that make up the list, in list order. |
