function textLocales(): Stream.Stream<string | undefined>; The locale that text is shown in (textLocale from @runic-artifex/views: the page's Translations locale, which follows the window's locale): the locale now, then each new one. undefined while the page has no Translations runtime and the application sets no window locale. Render the page's own messages (m.*()) again on each. During development it emits the same locale again when the Runic Translations Vite plugin (0.12.0 or later) updates an edited message in place.
yield* Effect.forkScoped(Stream.runForEach(textLocales(), () => Effect.sync(() => { title.textContent = m.title(); })));