Locale
Information about localization.
| Module | require("gui") |
| Type | Object |
Class methods
getCurrentIdentifier()
Return current locale identifier string.
Return
StringgetPreferredLanguages()
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
Array