/// <summary>
 /// Create a LocaleIdentifier from a <see cref="UnityEngine.SystemLanguage"/> enum value.
 /// </summary>
 /// <param name="systemLanguage"></param>
 public LocaleIdentifier(SystemLanguage systemLanguage)
     : this(SystemLanguageConverter.GetSystemLanguageCultureCode(systemLanguage))
 {
 }
 /// <summary>
 /// Attempt to retrieve a Locale using a <see cref="UnityEngine.SystemLanguage"/>.
 /// </summary>
 /// <returns>If no Locale can be found then null is returned.</returns>
 public Locale GetLocale(SystemLanguage systemLanguage)
 {
     return(GetLocale(SystemLanguageConverter.GetSystemLanguageCultureCode(systemLanguage)));
 }
Example #3
0
 public static Locale CreateLocale(SystemLanguage language)
 {
     return(CreateLocale(new LocaleIdentifier(SystemLanguageConverter.GetSystemLanguageCultureCode(language))));
 }