setLocaleString (XSPContext - JavaScript™)
Sets the locale for the current session as a string.
Defined in
XSPContext (JavaScript)Syntax
setLocaleString(locale:string) : void
Parameter | Description |
---|---|
locale |
The locale. |
Usage
The locale string is in standard format, for example,en-US
for English (US) or fr-CA
for
French (Canada).This locale replaces what is sent by the browser.
Examples
This button forces the locale for the current session to be French Canadian.context.setLocaleString("fr_CA")