injectTextLocale function

Module @runic-artifex/angular in @runic-artifex/angular 0.23.0

function injectTextLocale({ injector: provided }?: InjectTextOptions): Signal<string | undefined>;

The locale that text is shown in, as textLocaleSignal returns it for the Runic instance of the injection context (or of injector): the same one signal per instance. Use it in components and services, like the other inject* functions; use textLocaleSignal where there is no injection context, such as the page's locale resolver in main.ts.

readonly locale = injectTextLocale();
// <time [attr.lang]="locale()">…</time>