Reference · Where every tie sits
voiceOffunction
Builds the voice of a drawing from its locale, words and teamName options.
Import it
import { voiceOf } from "@johnmorrisdotca/taisen-brackets/layout";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
function voiceOf(options: Pick<DrawOptions, "locale" | "words" | "teamName">): Voice
Parameters
| Name | Type | Description |
|---|---|---|
options | Pick<DrawOptions, "locale" | "words" | "teamName"> | The options of a drawing that name its language. |
Returns
Voice
The voice.
Examples
import { voiceOf } from "@johnmorrisdotca/taisen-brackets";
const voice = voiceOf({ locale: "ja" });
console.log(voice.words.champion, voice.number(1234));優勝 1,234What it prints (run when this page was built)