Reference · Framing, geometry and quiz tools
chizuSayfunction
A line of the board's words with its {name} values filled in.
Import it
import { chizuSay } from "@johnmorrisdotca/chizu";
Definition
function chizuSay(language: ChizuLanguage, key: string, values?: Record<string, string | number>): string
Parameters
| Name | Type | Description |
|---|---|---|
language | ChizuLanguage | The English or Japanese display language. |
key | string | The native localized-message key. |
values (optional) | Record<string, string | number> | Replacement values for brace-delimited message placeholders. |
Returns
string
A line of the board's words with its {name} values filled in.
Examples
import { chizuSay } from "@johnmorrisdotca/chizu";
console.log(chizuSay("en", "map", { name: "Japan" }));
console.log(chizuSay("ja", "map", { name: "日本" }));
// Map of Japan
// 日本の地図Map of Japan
日本の地図What it prints (run when this page was built)