| Parameter | Description |
|---|---|
| code | The culture code, for example "en" or "fr-CA". |
Creates an identifier from a culture code.
A null or empty code produces the undefined locale, whose LocaleIdentifier.Code is the empty string.
<para>Create an identifier from a culture code.</para>
using Unity.Localization;
namespace Unity.Localization.Samples { public class LocaleIdentifierConstructorExample { public LocaleIdentifier Run() => new LocaleIdentifier("fr-CA"); } }