Locale型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A language: its words, the names of the rounds (by their English names), and the tag Intl formats numbers and dates for.
インポート
import type { Locale } from "@johnmorrisdotca/taisen-brackets/layout";
ほかのエクスポート元: @johnmorrisdotca/taisen-brackets
定義
interface Locale {
code: string;
tag: string;
words: Words;
rounds: Readonly<Record<string, string>>;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
code | string | The code ( |
tag | string | |
words | Words | |
rounds | Readonly<Record<string, string>> | Round names by their English name: |
例
import { localeOf, type Locale } from "@johnmorrisdotca/taisen-brackets";
const french: Locale = localeOf("fr");
console.log(french.code, french.tag, french.words.champion);fr fr Champion出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。