Constructor
new module:caplin/core/LocaleUtility()
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 BladeRunnerJS, 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 BladeRunnerJS, and this proxy class will be removed from
CaplinTrader in a future release. Please use the
Methods
-
(static) getLocale()
-
Returns the locale cookie value for the app.
- Deprecated:
- This functionality is now provided by BladeRunnerJS, 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 BladeRunnerJS, and this proxy method will be removed from
CaplinTrader in a future release. Please use
-
(static) setLocale(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 BladeRunnerJS, 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 BladeRunnerJS, and this proxy method will be removed from
CaplinTrader in a future release. Please use