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
import type { MountLanguage } from "@mapcairn/map";
interface MountLanguage
Properties
direction
readonly direction?: "ltr" | "rtl";
The reading direction, when it is not the one the tag implies.
label
readonly label: string;
The language's name, in that language. It is what the language switcher shows.
messages
readonly messages: Partial<Record<MessageKey, string>>;
The text, by message key. A key left out reads in English.
tag
readonly tag: string;
A language tag such as "af". Each language has its own, and "en-GB" is taken by English.