sfSetLocale

Sets the current locale (language code) in use.

When the application is used in a specific locale, it affects

  • the language of the text displayed

  • the date format displayed or accepted as input

  • the decimal number format displayed or accepted as input

Read more about the locales supported and respective date and number formats.

Syntax

sfSetLocale (localeCode)

Parameters

Name

Type

Mandatory

Description

Name

Type

Mandatory

Description

localeCode

string

yes

Locale code of the language to be set. Click here for the list of supported locale codes.

Usage examples

Example 1

sfSetLocale('NL')

Sets the current language as Dutch.