Caplin Trader 5.1.0

Module: br-services/LocaleSwitcher


(inner) LocaleSwitcher()

Locale switchers are responsible for ensuring that the browser loads the app using the active locale (as determined using {br-services/LocaleSwitcher#getActiveLocale}) when directed to do so.

There are two standard implementations provided:

  • {br-services/locale/BRLocaleForwardingSwitcher}: Causes the browser to load the locale specific page using a URL that includes the locale.
  • {br-services/locale/BRLocaleLoadingSwitcher}: Causes the browser to replace the contents of the locale switching page with the contents of the locale specific page.