function useTextLocale(): TextLocaleHandle; Follows the locale that text is shown in (textLocale: the page's Translations locale, which follows the window's locale). Reading current in a template, $derived or $effect runs it again when the locale changes. It is one handle for each Runic instance and needs no component (outside one it is the page instance's), so the page's locale resolver can read it: a template that calls m.*() then renders again on a language switch. undefined while the page has no Translations runtime and the application sets no window locale.
const textLocale = useTextLocale();
configureLocaleResolver(() => textLocale.current ?? locale.getLocale());