Returns the current locale.
The platform's locale string should be available. However, if it is missing the function queries available JavaScript APIs for a suitable value.
<static> getCurrentLocale() → {String}
Returns a string containing the current locale, or null if it is not available.
[/reference/refbody/section/sectiondiv {""})Type:
String
(sectiondiv]var sLocale = hwc.getCurrentLocale();