Skip to the content

Taisen Brackets対戦

Knockout brackets as SVG, from a list of ties.

Taisen (対戦, たいせん) is Japanese for a matchup: two sides facing each other. About the name

Contents

Reference · Where every tie sits

LOCALESconstant

The built-in languages, by code.

Import it

import { LOCALES } from "@johnmorrisdotca/taisen-brackets/layout";

Also exported from: @johnmorrisdotca/taisen-brackets

Definition

const LOCALES: Readonly<Record<"en" | "fr" | "ja" | "es" | "de", Locale>> = Object.freeze({
    en: { code: "en", tag: "en", words: EN, rounds: {} },
    fr: { code: "fr", tag: "fr", words: FR, rounds: rounds(0) },
    ja: { code: "ja", tag: "ja", words: JA, rounds: rounds(1) },
    es: { code: "es", tag: "es", words: ES, rounds: rounds(2) },
    de: { code: "de", tag: "de", words: DE, rounds: rounds(3) },
})

Examples

import { LOCALES } from "@johnmorrisdotca/taisen-brackets";

console.log(Object.keys(LOCALES), LOCALES.ja.tag);
[ 'en', 'fr', 'ja', 'es', 'de' ] ja

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/taisen-brackets 0.20.0.