Interface: module:br/services/LocaleService

module:br/services/LocaleService

A service that allows getting and setting the current app locale cookie.

Methods

getLocale()

Gets the current locale preference.
Source:

getPageLocale()

Gets the locale for the current page
Source:

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
Source: