Skip to main content

HostText

A host's own translatable definition text: a host-defined catalogue key and the text shown in the source language, which is also the fallback when the active catalogue has no translation for the key. The key is never a MessageKey; it is looked up in MessageCatalogue.

This is an interface exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { HostText } from "@mapcairn/core";

interface HostText

Properties​

key​

readonly key: string;

The key the text is looked up by.

text​

readonly text: string;

The text itself, as the host wrote it.

Source: packages/core/src/ports/messages.ts:734