sugorokuSayfunction
A line in a language with its {name}s filled in. A name left unfilled stays as written, so a missing value is visible.
Import it
import { sugorokuSay } from "@johnmorrisdotca/sugoroku/play";
Definition
function sugorokuSay(language: SugorokuLanguage, key: string, values?: Record<string, string | number>): string
Parameters
| Name | Type | Description |
|---|---|---|
language | SugorokuLanguage | The English or Japanese display language. |
key | string | The native variant, preset or localized-label key specified by the signature. |
values (optional) | Record<string, string | number> | Replacement strings or numbers for brace-delimited placeholders. |
Returns
string
A line in a language with its {name}s filled in. A name left unfilled stays as written, so a missing value is visible.
Examples
import { sugorokuSay } from "@johnmorrisdotca/sugoroku/play";
console.log(sugorokuSay("en","roll"));Roll diceWhat it prints (run when this page was built)