Locale

Information about localization.

Modulerequire("yue.gui")
Typetable

Class methods

getcurrentidentifier()

Return current locale identifier string.

Return

string

getpreferredlanguages()

Return an ordered list of user's preferred languages.

Users choose a primary language when configuring a device, they may also specify one or more secondary languages in order of preference for use when localization is unavailable in a higher priority language.

Use this API to obtain the current user's ordered list of languages, presented as an array of locale identifier strings.

Return

table