| Parameter | Description |
|---|---|
| code | The culture code to convert. |
LocaleIdentifier An identifier for the given culture code.
Converts a culture code string into an identifier.
Lets you assign a string wherever a LocaleIdentifier is expected. A null or empty string produces the
undefined locale. Equivalent to calling LocaleIdentifier.LocaleIdentifier.
<para>Assign a string to a LocaleIdentifier through the implicit conversion.</para>
using Unity.Localization;
namespace Unity.Localization.Samples { public class LocaleIdentifierFromCodeExample { public LocaleIdentifier Run() { LocaleIdentifier identifier = "fr-CA"; // implicit conversion from string return identifier; } } }