You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

is_locale()

Usage

is_locale(locales, ...)

Description
Returns a boolean value that indicates whether the locale of the current user is one of the given locale values.

Example

${is_locale('de_DE', 'de_AT')}

results in

true

Search results for "is_locale()"

is_locale()

Returns a boolean value that indicates whether the locale of the current context is one of the given locale values.

is_locale(locales, ...)