# MountLanguage

A language a page adds to English, as plain data.

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

## Signature

```ts
import type { MountLanguage } from "@mapcairn/map";
 
interface MountLanguage
```

## Properties

### direction

```ts
readonly direction?: "ltr" | "rtl";
```

The reading direction, when it is not the one the tag implies.

### label

```ts
readonly label: string;
```

The language's name, in that language. It is what the language switcher shows.

### messages

```ts
readonly messages: Partial<Record<MessageKey, string>>;
```

The text, by message key. A key left out reads in English.

### tag

```ts
readonly tag: string;
```

A language tag such as `"af"`. Each language has its own, and `"en-GB"` is taken by English.

## See also

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

Source: [packages/map/src/element/types.ts:23](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/element/types.ts#L23)
