MASYU_STRINGS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Native English and Japanese labels and announcements for Masyu.
インポート
import { MASYU_STRINGS } from "@johnmorrisdotca/kazu/masyu/play";
定義
const MASYU_STRINGS: { readonly en: { readonly title: "Masyu"; readonly help: "Draw one loop through every pearl. White pearls go straight and turn at a neighboring cell; black pearls turn and go straight through the neighboring cell on each side."; readonly undo: "Undo"; readonly hint: "Hint"; readonly check: "Check"; readonly restart: "Restart"; readonly won: "Solved!"; readonly helped: "Solved with help."; readonly good: "The loop is still open. Keep going."; readonly bad: "Check the marked line ends and pearls."; readonly pearl: readonly ["empty", "white pearl", "black pearl"]; }; readonly ja: { readonly title: "ましゅ"; readonly help: "すべての真珠を通る一つの輪を描きます。白真珠では直進して隣のマスで曲がり、黒真珠では曲がって両隣のマスで直進します。"; readonly undo: "戻す"; readonly hint: "ヒント"; readonly check: "確認"; readonly restart: "やり直す"; readonly won: "完成!"; readonly helped: "ヒントを使って完成。"; readonly good: "輪はまだ閉じていません。続けましょう。"; readonly bad: "線の端や真珠の周りを確認してください。"; readonly pearl: readonly ["なし", "白真珠", "黒真珠"]; }; } = {
en: { title: "Masyu", help: "Draw one loop through every pearl. White pearls go straight and turn at a neighboring cell; black pearls turn and go straight through the neighboring cell on each side.", undo: "Undo", hint: "Hint", check: "Check", restart: "Restart", won: "Solved!", helped: "Solved with help.", good: "The loop is still open. Keep going.", bad: "Check the marked line ends and pearls.", pearl: ["empty", "white pearl", "black pearl"] },
ja: { title: "ましゅ", help: "すべての真珠を通る一つの輪を描きます。白真珠では直進して隣のマスで曲がり、黒真珠では曲がって両隣のマスで直進します。", undo: "戻す", hint: "ヒント", check: "確認", restart: "やり直す", won: "完成!", helped: "ヒントを使って完成。", good: "輪はまだ閉じていません。続けましょう。", bad: "線の端や真珠の周りを確認してください。", pearl: ["なし", "白真珠", "黒真珠"] },
} as const
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
en | { readonly title: "Masyu"; readonly help: "Draw one loop through every pearl. White pearls go straight and turn at a neighboring cell; black pearls turn and go straight through the neighboring cell on each side."; readonly undo: "Undo"; readonly hint: "Hint"; readonly check: "Check"; readonly restart: "Restart"; readonly won: "Solved!"; readonly helped: "Solved with help."; readonly good: "The loop is still open. Keep going."; readonly bad: "Check the marked line ends and pearls."; readonly pearl: readonly ["empty", "white pearl", "black pearl"]; } | |
ja | { readonly title: "ましゅ"; readonly help: "すべての真珠を通る一つの輪を描きます。白真珠では直進して隣のマスで曲がり、黒真珠では曲がって両隣のマスで直進します。"; readonly undo: "戻す"; readonly hint: "ヒント"; readonly check: "確認"; readonly restart: "やり直す"; readonly won: "完成!"; readonly helped: "ヒントを使って完成。"; readonly good: "輪はまだ閉じていません。続けましょう。"; readonly bad: "線の端や真珠の周りを確認してください。"; readonly pearl: readonly ["なし", "白真珠", "黒真珠"]; } |
例
import { MASYU_STRINGS } from "@johnmorrisdotca/kazu/masyu/play";
console.log(Object.keys(MASYU_STRINGS.en));[
'title', 'help',
'undo', 'hint',
'check', 'restart',
'won', 'helped',
'good', 'bad',
'pearl'
]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。