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 · Draw a bracket, a table or a road to the final

judoCategoryLabelfunction

A weight category as a heading in a language: "Men -66 kg", "Women +78 kg".

Import it

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

Definition

function judoCategoryLabel(category: JudoCategory, locale?: string): string

Parameters

NameTypeDescription
categoryJudoCategory

The sex and the weight class.

locale (optional)string | undefined

The language. Default English.

Returns

string

The label.

Examples

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

console.log(judoCategoryLabel({ sex: "women", weight: "-48" }, "es"), judoCategoryLabel({ sex: "men", weight: "+100" }));
Mujeres -48 kg Men +100 kg

What it prints (run when this page was built)

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