Caplin Trader 5.1.0

Module: br-services/locale/BRLocaleProvider

(require("br-services/locale/BRLocaleProvider"))()

BRLocaleProvider is an implementation of {br-services/BRLocaleProvider} that works in the following way:

  1. The locale cookie is used if one is present.
  2. If no locale cookie is present, the browser's Accept-Language headers are used to set the locale cookie.
  3. If {#setActiveLocale} is invoked the locale cookie is updated.