mobileCurrentLocale

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
mobileCurrentLocale()
Synonymsiphonecurrentlocale
Summary

Returns the currently configured locale.

Introduced5.5
OSios, android
Platformsmobile
Example
mobileCurrentLocale()
if mobileCurrentLocale() is "en_US" then 
  updateDisplay "english"
end if
Values
NameTypeDescription
return

The mobileCurrentLocale function returns the currently configured locale tag. For example "en_US".

RelatedFunction: mobilePreferredLanguages
Description

Use the mobileCurrentLocale function to discover what language the device is currently set to use. This allows you to set up your app for that language.