Skip to main content

LanguageOption

One language a host offers.

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

Signature​

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

interface LanguageOption

Properties​

direction​

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

Overrides the direction inferred from the tag when the host needs to.

label​

readonly label: string;

The language's name in that language (an endonym), for example "Afrikaans".

tag​

readonly tag: string;

The BCP 47 tag, for example "en-GB" or "af".

Source: packages/core/src/messages/languageCatalogue.ts:6