The active locale and a translation function bound to it.
Subscribes the component to locale changes, so a component that renders
t('…') re-renders in the new language the moment the settings save —
a module-level t alone would leave already-mounted dialogs in the old one.
The active locale and a translation function bound to it.
Subscribes the component to locale changes, so a component that renders
t('…')re-renders in the new language the moment the settings save — a module-leveltalone would leave already-mounted dialogs in the old one.