menu

SFRA / Server-side JS / Class: Locale

Locale

new Locale(currentLocale, allowedLocales, siteId)

Represents current locale information in plain object

Parameters:
Name Type Description
currentLocale dw.util.Locale

current locale of the request

allowedLocales string

list of allowed locales for the site

siteId string

id of the current site

Source:

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.