function useTextLocale(): string | undefined; Renders the locale that text is shown in (textLocale: the page's Translations locale, which follows the window's locale), and renders again when it changes. Call it in a component that renders the page's own messages, so that m.*() runs again after a language switch; the component's children render with it, except memoized ones. During development it also renders again when the Runic Translations Vite plugin (0.12.0 or later) updates an edited message in place, with the component's state kept. undefined while the page has no Translations runtime and the application sets no window locale.
function Toolbar() {
useTextLocale();
return <button>{m.save()}</button>;
}