Skip to the content

Chizu地図

Draw SVG maps, frame regions, place numbered callouts and build geography quizzes with English and Japanese names.

Chizu is the Japanese word 地図 for map. About the name

Contents

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

NameTypeDescription
languageChizuLanguage

The English or Japanese display language.

keystring

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)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/chizu 1.5.0.