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

localeOffunction

The language an option names: a code of a built-in one, or a Locale.

Import it

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

Also exported from: @johnmorrisdotca/taisen-brackets

Definition

function localeOf(option: string | Locale | undefined): Locale

Parameters

NameTypeDescription
optionstring | Locale | undefined

A code such as ja, a Locale, or undefined.

Returns

Locale

The language; English when the option is empty or the code is not one of the five.

Examples

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

console.log(localeOf("ja").tag, localeOf(undefined).tag);
ja en

What it prints (run when this page was built)

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