Caplin Trader 5.1.0

Class: module:ct-core/LocaleUtility

module:ct-core/LocaleUtility()

new module:ct-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 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.

Methods

(static) getLocale()

Returns the locale cookie value for the app.

Deprecated:

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