Reference · Where every tie sits
Localetype
A language: its words, the names of the rounds (by their English names), and the tag Intl formats numbers and dates for.
Import it
import type { Locale } from "@johnmorrisdotca/taisen-brackets/layout";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
interface Locale {
code: string;
tag: string;
words: Words;
rounds: Readonly<Record<string, string>>;
}
Members
| Name | Type | Description |
|---|---|---|
code | string | The code ( |
tag | string | |
words | Words | |
rounds | Readonly<Record<string, string>> | Round names by their English name: |
Examples
import { localeOf, type Locale } from "@johnmorrisdotca/taisen-brackets";
const french: Locale = localeOf("fr");
console.log(french.code, french.tag, french.words.champion);fr fr ChampionWhat it prints (run when this page was built)