Caplin Trader 4.7.1

Class: module:caplin/core/LocaleUtility

module:caplin/core/LocaleUtility

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.

    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: