Skip to main content
Skip table of contents

setLocale

Sets a new Locale as the user's default locale until the end of the Flow. The default locale most notably affects the default settings for many formats and parsers created with other commands.

Attributes

locale

Required

Value type

EL-evaluated

No

String

Yes

Specifies the new default locale. The resolved String should bean ISO-639 language code and an ISO-3166 country code, joined by a hyphen or an underscore (e.g."en-US" or "en_US"). Alternatively the value may only specify the language code, but this may lead to unpredictable results with formats and parsers that require country information.

Examples

A user's locale is initially defined based on the user locale information provided by Salesforce. The setLocale command can be used to make sure that all locale-based defaults are the same for all users, regardless of what Salesforce tells. The following would set all users to a purely Finnish locale:

CODE
<setLocale locale="fi-FI">
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.