IBM Worklight v5.0.5 > API reference > IBM Worklight client-side API > JavaScript client-side API

WL.App.getDeviceLocale


Return the locale code according to user device settings, for example: en_US.

On BlackBerry 6 and 7, this method returns the device language (for example, en), not the device locale.


Parent JavaScript client-side API