# LocaleIdentifier(string)

> Creates an identifier from a culture code.

## Definition

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

```csharp
public LocaleIdentifier(string code)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The culture code, for example "en" or "fr-CA".

### Remarks

A null or empty code produces the undefined locale, whose [LocaleIdentifier.Code](/engine/6000.7/script-reference/unity/localization/localeidentifier/code.md) is the empty string.

Create an identifier from a culture code.

### Examples

```csharp
using Unity.Localization;

namespace Unity.Localization.Samples
{
    public class LocaleIdentifierConstructorExample
    {
        public LocaleIdentifier Run() => new LocaleIdentifier("fr-CA");
    }
}
```
