# SpecificLocaleSelector

> Selects a fixed locale by its identifier when that locale is available.

## Definition

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

```csharp
public class SpecificLocaleSelector : IStartupLocaleSelector
```

## Remarks

Use this selector to force a specific locale at startup regardless of the device or command line. Set [SpecificLocaleSelector.LocaleId](/engine/6000.7/script-reference/unity/localization/specificlocaleselector/localeid.md) to the [LocaleIdentifier](/engine/6000.7/script-reference/unity/localization/localeidentifier.md) of the locale to select. If no available locale matches the identifier, GetStartupLocale returns null and the next selector in [LocalizationSettings.StartupSelectors](/engine/6000.7/script-reference/unity/localization/localizationsettings/startupselectors.md) runs.

Additional Resources: [IStartupLocaleSelector](/engine/6000.7/script-reference/unity/localization/istartuplocaleselector.md), [LocalizationSettings](/engine/6000.7/script-reference/unity/localization/localizationsettings.md), [Locale](/engine/6000.7/script-reference/unity/localization/locale.md)

Selects French when it is one of the available locales.

## Examples

```csharp
using Unity.Localization;

namespace Unity.Localization.Samples
{
    public class SpecificLocaleSelectorExample
    {
        public Locale Run()
        {
            var selector = new SpecificLocaleSelector { LocaleId = new LocaleIdentifier("fr") };
            Locale french = selector.GetStartupLocale(LocalizationSettings.Instance);
            return french;
        }
    }
}
```

## Properties

| Property                                                                                          | Description                             |
| ------------------------------------------------------------------------------------------------- | --------------------------------------- |
| [LocaleId](/engine/6000.7/script-reference/unity/localization/specificlocaleselector/localeid.md) | The identifier of the locale to select. |
