setLocale (XSPContext - JavaScript™)
Sets the locale for the current session.
Defined in
XSPContext (JavaScript)Syntax
setLocale(locale:Locale) : void
Parameter | Description |
---|---|
locale |
The locale. |
Usage
This locale replaces what is sent by the browser.Examples
This button forces the locale for the current session to be French Canadian.context.setLocale(new Locale("fr", "CA"))