SFRA Server-side Javascript - Class: Locale 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: