tsunagiSayfunction
A line in a language, with its values filled in; the line itself if there is none by that name.
Import it
import { tsunagiSay } from "@johnmorrisdotca/tsunagi/draw";
Definition
function tsunagiSay(language: TsunagiLanguage, key: string, values?: Record<string, string | number>): string
Parameters
| Name | Type | Description |
|---|---|---|
language | TsunagiLanguage | The English or Japanese display language. |
key | string | The localized word identifier. |
values (optional) | Record<string, string | number> | Replacement text or numbers keyed by braces. |
Returns
string
A line in a language, with its values filled in; the line itself if there is none by that name.
Examples
import { tsunagiSay } from "@johnmorrisdotca/tsunagi/draw";
console.log(tsunagiSay("en","undo"));UndoWhat it prints (run when this page was built)