# MessageCatalogueFixture

How the message catalogue contract scripts a subject.
`createMissingKey(key)` must return an instance whose active catalogue
lacks `key`, so `t`/`plural` fall back to its English value and warn.

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

## Signature

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

## Properties

### create

```ts
readonly create: () => MessageCatalogue;
```

A fresh, fully resolved instance, in English.

### createIsolating

```ts
readonly createIsolating: (language: string, options: {
        readonly direction?: "ltr" | "rtl";
        readonly isolateParameters?: boolean;
    }) => MessageCatalogue;
```

A fresh instance with its reading direction and, optionally, an explicit
parameter isolation setting, as `createMessageCatalogue`'s options.

### createMissingKey

```ts
readonly createMissingKey: (key: MessageKey) => MessageCatalogue;
```

A fresh instance missing `key`, so it falls back to English and warns.

### createWith

```ts
readonly createWith: (language: string, values: Partial<Record<MessageKey, string>>, numberingSystem?: string) => MessageCatalogue;
```

A fresh instance with a scripted language and active values, and
optionally an `Intl` numbering system for numbers and days.

## See also

- [`MessageCatalogue`](https://docs.mapcairn.com/api/core/MessageCatalogue.md)
- [`MessageKey`](https://docs.mapcairn.com/api/core/MessageKey.md)

Source: [packages/core/src/contracts/messageCatalogue.contract.ts:12](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/contracts/messageCatalogue.contract.ts#L12)
