function textLocaleSignal(instance?: RunicInstance): Signal<string | undefined>; The locale that text is shown in (textLocale: the instance's Translations locale, which follows the window's locale), as a signal. It is one signal per Runic instance and needs no injection context, so the page's locale resolver can read it: a template that calls m.*() reads the signal through the resolver and renders again on a language switch. During development it also notifies, with the same locale, when the Runic Translations Vite plugin (0.12.0 or later) updates an edited message in place, so OnPush templates show the new text. undefined while the instance has no Translations runtime and the application sets no window locale. The instance is instance, else that of the injection context, else the page instance.
const textLocale = textLocaleSignal();
configureLocaleResolver(() => textLocale() ?? locale.getLocale());