Skip to the content

Kazu数

Generate checked Sudoku and logic puzzles, read native rules and hints, and draw or embed playable boards.

Kazu is the Japanese word 数 for number. About the name

Contents

Reference · Number-grid SVG

kazuSayfunction

A line in a language, with its values filled in; the line itself if there is none by that name.

Import it

import { kazuSay } from "@johnmorrisdotca/kazu/draw";

Definition

function kazuSay(language: KazuLanguage, key: string, values?: Record<string, string | number>): string

Parameters

NameTypeDescription
languageKazuLanguage

The native English or Japanese display language.

keystring

The native localized label identifier.

values (optional)Record<string, string | number>

Replacement text/numbers or row-major entries specified by this signature.

Returns

string

A line in a language, with its values filled in; the line itself if there is none by that name.

Examples

import { kazuSay } from "@johnmorrisdotca/kazu/draw";

console.log(kazuSay("en","undo"));
Undo

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kazu 2.1.0.