# 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`](https://docs.mapcairn.com/api/core/MessageKey.md); it is looked up in [`MessageCatalogue`](https://docs.mapcairn.com/api/core/MessageCatalogue.md).

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

## Signature

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

## Properties

### key

```ts
readonly key: string;
```

The key the text is looked up by.

### text

```ts
readonly text: string;
```

The text itself, as the host wrote it.

Source: [packages/core/src/ports/messages.ts:734](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/ports/messages.ts#L734)
