function useText(source: () => TextReference | FieldError | string | null | undefined, fallback?: () => string | undefined): TextHandle; Follows a text reference that a ViewModel produced, such as a status line or a validation message's text, in the window's language (resolveText), while its owner lives. source and fallback are read reactively, so pass functions: useText(() => 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: useText(() => name.error). Call during component initialization (or in $effect.root).
const status = useText(() => view.state?.status);
<p>{status.current}</p>