Class SystemLocaleSelector
Attempts to determine the Locale to use from the system that is running the application.
Namespace: UnityEngine.Localization.Settings
Syntax
public class SystemLocaleSelector : object, IStartupLocaleSelector
Methods
GetApplicationSystemLanguage()
Returns Application.systemLanguage.
Declaration
protected virtual SystemLanguage GetApplicationSystemLanguage()
Returns
Type | Description |
---|---|
SystemLanguage |
GetStartupLocale(ILocalesProvider)
Uses CultureInfo.CurrentUICulture and Application.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 |