Caplin Trader 4.8.0

Interface: module:br/services/LocaleService

module:br/services/LocaleService

A service that allows getting and setting the current app locale cookie.
Deprecated:
  • Yes

Methods

getLocale()

Gets the current locale preference.

getPageLocale()

Gets the locale for the current page

setLocaleCookie(locale, days)

Sets the locale cookie
Parameters:
Name Type Description
locale String The locale value for the cookie
days Number The number of days to set for this cookie