GetCurrentLanguage

Description

Get active app language.

Declaration

public static SupportedLanguages GetCurrentLanguage()

Return

SupportedLanguages - The current language of the app.

Example

using UnityEngine.UI;
using Gley.Localization;

public class Test : MonoBehaviour
{
    public void DisplayLanguage()
    {
        SupportedLanguages language = Gley.Localization.API.GetCurrentLanguage();
        Debug.Log(language);
    }
}

Last updated