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

kazuLanguageOffunction

The language a piece of text is in: Japanese for anything starting ja, English for everything else.

Import it

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

Definition

function kazuLanguageOf(tag: string | null | undefined): KazuLanguage

Parameters

NameTypeDescription
tagstring | null | undefined

An optional language tag, such as ja-JP.

Returns

KazuLanguage

The language a piece of text is in: Japanese for anything starting ja, English for everything else.

Examples

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

console.log(kazuLanguageOf("ja-JP"));
ja

What it prints (run when this page was built)

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