getLocale (XSPContext - JavaScript™)
Gets the current locale.
Defined in
XSPContext (JavaScript)Syntax
getLocale() : Locale| Return value | Description |
|---|---|
Locale |
The locale. |
Examples
This computed field gets information from the locale for the current context.return "Your language is " + context.getLocale().getDisplayLanguage() +
" (" + context.getLocale().getDisplayCountry() + ")."