Module

i18nController

This controller initializes the app locale at startup and updates it on demand when changing the locale

View Source frontend/controllers/i18n_controller.js, line 24

Methods

# static getAvailableLocales()

returns code list of all available locales for the app

View Source frontend/controllers/i18n_controller.js, line 230

# static getLocale()

returns current app locale (2-letter language code or 2-letter language - 2-letter region)

View Source frontend/controllers/i18n_controller.js, line 218

# static getSystemLocale()

returns detected OS locale

View Source frontend/controllers/i18n_controller.js, line 227