HITORI_STRINGS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Native English and Japanese labels and announcements for Hitori.
インポート
import { HITORI_STRINGS } from "@johnmorrisdotca/kazu/hitori/play";
定義
const HITORI_STRINGS: { readonly en: { readonly title: "Hitori"; readonly help: "Tap a cell or press Space to shade it. Shaded cells cannot touch; the remaining numbers must be unique in every row and column, and the unshaded cells must stay connected. Arrow keys move."; readonly undo: "Undo"; readonly hint: "Hint"; readonly check: "Check"; readonly restart: "Restart"; readonly won: "Solved!"; readonly helped: "Solved with help."; readonly bad: "Some rules are broken."; readonly good: "No rule errors yet. Keep going."; readonly noHint: "No proved hint is available."; readonly cell: "Row"; readonly column: "column"; readonly shaded: "shaded"; readonly white: "unshaded"; }; readonly ja: { readonly title: "ひとりにしてくれ"; readonly help: "マスを押すかスペースキーで黒くします。黒マスは辺で隣り合えません。白マスの行と列に同じ数字がなく、白マス全体がつながるようにします。矢印キーで移動します。"; readonly undo: "戻す"; readonly hint: "ヒント"; readonly check: "確認"; readonly restart: "やり直す"; readonly won: "完成!"; readonly helped: "ヒントを使って完成。"; readonly bad: "ルールに合わないところがあります。"; readonly good: "今のところルール違反はありません。"; readonly noHint: "確かなヒントはありません。"; readonly cell: "行"; readonly column: "列"; readonly shaded: "黒"; readonly white: "白"; }; } = {
en: {
title: "Hitori",
help: "Tap a cell or press Space to shade it. Shaded cells cannot touch; the remaining numbers must be unique in every row and column, and the unshaded cells must stay connected. Arrow keys move.",
undo: "Undo", hint: "Hint", check: "Check", restart: "Restart", won: "Solved!", helped: "Solved with help.",
bad: "Some rules are broken.", good: "No rule errors yet. Keep going.", noHint: "No proved hint is available.",
cell: "Row", column: "column", shaded: "shaded", white: "unshaded",
},
ja: {
title: "ひとりにしてくれ",
help: "マスを押すかスペースキーで黒くします。黒マスは辺で隣り合えません。白マスの行と列に同じ数字がなく、白マス全体がつながるようにします。矢印キーで移動します。",
undo: "戻す", hint: "ヒント", check: "確認", restart: "やり直す", won: "完成!", helped: "ヒントを使って完成。",
bad: "ルールに合わないところがあります。", good: "今のところルール違反はありません。", noHint: "確かなヒントはありません。",
cell: "行", column: "列", shaded: "黒", white: "白",
},
} as const
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
en | { readonly title: "Hitori"; readonly help: "Tap a cell or press Space to shade it. Shaded cells cannot touch; the remaining numbers must be unique in every row and column, and the unshaded cells must stay connected. Arrow keys move."; readonly undo: "Undo"; readonly hint: "Hint"; readonly check: "Check"; readonly restart: "Restart"; readonly won: "Solved!"; readonly helped: "Solved with help."; readonly bad: "Some rules are broken."; readonly good: "No rule errors yet. Keep going."; readonly noHint: "No proved hint is available."; readonly cell: "Row"; readonly column: "column"; readonly shaded: "shaded"; readonly white: "unshaded"; } | |
ja | { readonly title: "ひとりにしてくれ"; readonly help: "マスを押すかスペースキーで黒くします。黒マスは辺で隣り合えません。白マスの行と列に同じ数字がなく、白マス全体がつながるようにします。矢印キーで移動します。"; readonly undo: "戻す"; readonly hint: "ヒント"; readonly check: "確認"; readonly restart: "やり直す"; readonly won: "完成!"; readonly helped: "ヒントを使って完成。"; readonly bad: "ルールに合わないところがあります。"; readonly good: "今のところルール違反はありません。"; readonly noHint: "確かなヒントはありません。"; readonly cell: "行"; readonly column: "列"; readonly shaded: "黒"; readonly white: "白"; } |
例
import { HITORI_STRINGS } from "@johnmorrisdotca/kazu/hitori/play";
console.log(Object.keys(HITORI_STRINGS.en));[
'title', 'help',
'undo', 'hint',
'check', 'restart',
'won', 'helped',
'bad', 'good',
'noHint', 'cell',
'column', 'shaded',
'white'
]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。