TextReference interface

Module @runic-artifex/views/generated/wire in @runic-artifex/views 0.23.0

interface TextReference

A text reference of Runic Translations (the text-reference wire type, values.md): a catalog, a message key, typed arguments and an optional fallback text, as the Translations transport writes it. The page shows it in the window's language with resolveText or a framework's useText, which call the application's Translations runtime (resolveTextReference). Its type is structural, so a TextReferenceWire of a generated transport.js is one.

Properties

version

readonly version: number;

1 or 2 today; a later version decodes too, and the Translations runtime shows its fallback text.

catalog

readonly catalog: string;

No documentation.

contractFingerprint

readonly contractFingerprint: string;

No documentation.

key

readonly key: string;

No documentation.

arguments

readonly arguments: Readonly<Record<string, unknown>>;

No documentation.

fallbackText

readonly fallbackText?: string | null;

null only in version 1, where it means none.