docs.unity3d.com
    Show / Hide Table of Contents

    Class SystemLocaleSelector

    Attempts to determine the Locale to use from the system that is running the application.

    Inheritance
    Object
    SystemLocaleSelector
    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
    IStartupLocaleSelector.GetStartupLocale(ILocalesProvider)

    GetSystemCulture()

    Returns CultureInfo.CurrentUICulture.

    Declaration
    protected virtual CultureInfo GetSystemCulture()
    Returns
    Type Description
    CultureInfo
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023