Reference · Eight puzzle-rule namespaces
sayfunction
The words for key in lang, with each {name} filled from values; English when the language has none; the key itself when nobody has.
Import it
import { say } from "@johnmorrisdotca/karakuri";
Definition
function say(lang: KarakuriLanguage, key: string, values?: Record<string, string | number>): string
Parameters
| Name | Type | Description |
|---|---|---|
lang | KarakuriLanguage | The native English or Japanese language. |
key | string | The native localized-message key. |
values (optional) | Record<string, string | number> | Numbers to hash, or localized-message placeholders specified by the signature. |
Returns
string
The words for key in lang, with each {name} filled from values; English when the language has none; the key itself when nobody has.
Examples
import { say } from "@johnmorrisdotca/karakuri";
console.log(say("en","game_tube_sort"));Tube SortWhat it prints (run when this page was built)