function injectText(source: () => TextReference | FieldError | string | null | undefined, fallback?: () => string | undefined, { injector: provided }?: InjectTextOptions): Signal<string>; A text reference that a ViewModel produced, such as a status line or a validation message's text, in the window's language (resolveText), as a signal that follows a language switch for the lifetime of the injection context. source and fallback are read in a computed signal, so they may read other signals: injectText(() => view.state()?.status). A string shows as it is; null and undefined show fallback. Configure the page's Translations runtime once with configureTranslatedText; without one, a reference shows its fallback text. A field's FieldError shows the application's text for it (configureFieldErrorText), or its English message. Under server rendering it does not observe a language switch. In templates, the runicText pipe does the same.
readonly status = injectText(() => this.view.state()?.status);
// <p>{{ status() }}</p>