Caplin Trader 4.0.1

Class: module:br/services/locale/BRLocaleService

module:br/services/locale/BRLocaleService

Summary

The default locale service for BRJS apps. This class should not be constructed directly, but instead used via the service registry.

Constructor

new module:br/services/locale/BRLocaleService(localeUtility)

Parameters:
Name Type Description
localeUtility LocaleUtility The locale utility to use
Implements:
  • module:br/services/locale/BRLocaleServices

Methods

getLocale()

Gets the current locale preference

getPageLocale()

Gets the locale for the current page

setLocaleCookie()

Sets the locale cookie