Class SystemLocaleSelector
Attempts to determine the Locale to use from the system that is running the application.
Namespace: UnityEngine.Localization.Settings
Syntax
[Serializable]
public class SystemLocaleSelector : IStartupLocaleSelector
Methods
GetApplicationSystemLanguage()
Returns Application.systemLanguage.
Declaration
protected virtual SystemLanguage GetApplicationSystemLanguage()
Returns
Type | Description |
---|---|
SystemLanguage |
GetStartupLocale(ILocalesProvider)
Uses CurrentUICulture and systemLanguage to find a matching Locale from the available locales.
Declaration
public Locale GetStartupLocale(ILocalesProvider availableLocales)
Parameters
Type | Name | Description |
---|---|---|
ILocalesProvider | availableLocales |
Returns
Type | Description |
---|---|
Locale |
Implements
GetSystemCulture()
Returns CultureInfo.CurrentUICulture.
Declaration
protected virtual CultureInfo GetSystemCulture()
Returns
Type | Description |
---|---|
CultureInfo |