new module:ct-core /Locale Utility()
Utility class that provides methods for overriding the locale.
n.b. This is a static class that never needs to be instantiated.
- Deprecated:
- This functionality is now provided by br.locale-service, and this proxy class will be removed from
CaplinTrader in a future release. Please use the
br.locale-service
instead of this class.
- This functionality is now provided by br.locale-service, and this proxy class will be removed from
CaplinTrader in a future release. Please use the
Methods
(static) get Locale()
Returns the locale cookie value for the app.
- Deprecated:
- This functionality is now provided by br-services/locale/BRLocaleService, and this proxy method will be removed from
CaplinTrader in a future release. Please use
module:br-services/locale/BRLocaleService#getLocale
instead.
- This functionality is now provided by br-services/locale/BRLocaleService, and this proxy method will be removed from
CaplinTrader in a future release. Please use
(static) set Locale(locale, days)
Sets the locale for the app.
Parameters:
Name | Type | Description |
---|---|---|
locale |
String | The locale to set for the app. |
days |
Integer | The lifetime of the locale cookie. |
- Deprecated:
- This functionality is now provided by br-services/locale/BRLocaleService, and this proxy method will be removed from
CaplinTrader in a future release. Please use
module:br-services/locale/BRLocaleService#setLocaleCookie
instead.
- This functionality is now provided by br-services/locale/BRLocaleService, and this proxy method will be removed from
CaplinTrader in a future release. Please use