CountryCode

The CountryCode()function returns two-letter country code of a language parameter.

The language parameter is a specific language-code which is in the form en_US or nl_NL. (not a text with double quotes). The Expression Editor Functions Pane has a folder Localization where you can find the specific LanguageCodes.

This function is SQL compatible. For more information about SQL compatibility, see our documentation.

Returns a text that contains the two-letter country code of a language.

Returns Unknown if the parameter value is unknown. Shows a syntax error "parameter mismatch" in the expression editor if the parameter is not a valid LanguageCode.

Syntax

CountryCode(language)

CountryCode( en_US ) => "US"

CountryCode( CurrentLanguage ) => "NL" (when the currentlanguage is set to Dutch)

CountryCode( AvailableLanguages(3) ) => { the country code of the third language in the list of available languages }

Parameters

NameTypeRequiredDescription

language

languagecode

Specific language code (available within the Localization folder in the Expression Editor.

Last updated