/** * Locale Labels * * A market arrives as a BCP-47 tag. Editors read languages, not tags, so each * one is shown three ways: its own name for itself, its name in English, and a * badge short enough for a fixed square. */ export interface LocaleLabel { /** * The market's own name for itself, region or script included, e.g. * "Français (France)". Two markets of one language are named apart here: * "Português (Brasil)" against "Português europeu". */ native: string; /** The locale's name in English, region included, e.g. "French (France)". */ english: string; /** The badge, e.g. "FR". */ tag: string; /** * The canonical BCP-47 tag, for an HTML `lang` attribute. Undefined when the * market is not a tag at all, where declaring a language would be a guess. */ lang: string | undefined; dir: 'ltr' | 'rtl'; } export declare function localeLabel(locale: string): LocaleLabel;