function useTextLocale(): Readonly<Ref<string | undefined>>; The locale that text is shown in (textLocale: the page's Translations locale, which follows the window's locale), as a ref that renders, computes and watches again when it changes. It is one ref for the page (for each Runic instance) and needs no effect scope, 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.value ?? locale.getLocale());