sfGetLocale

Returns 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

sfGetLocale()

Parameters

None

Returns

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

Usage examples

sfGetLocale()

Returns the locale code of the language currently in use. e.g. EN, NL.