LOOP_STRINGS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Native English and Japanese labels and announcements for Loop.
インポート
import { LOOP_STRINGS } from "@johnmorrisdotca/kazu/loop/play";
定義
const LOOP_STRINGS: { readonly en: { readonly title: "Loop"; readonly help: "Connect adjacent dots with horizontal and vertical edges to make one closed loop. Each number says how many of its four bordering edges are in the loop. Empty cells may have any number of edges. The loop cannot branch or split into separate loops. Click or tap an edge, or focus it and press Enter or Space. Arrow keys move between edges."; readonly undo: "Undo"; readonly hint: "Hint"; readonly check: "Check"; readonly restart: "Restart"; readonly expand: "Just the board"; readonly close: "Close"; readonly won: "One closed loop. Solved!"; readonly helped: "Solved with help."; readonly checked: "No rule conflicts so far. Keep drawing the loop."; readonly wrong: "Check the numbered cells, branches and loop connections."; readonly hintWhy: "This edge is part of the only proved loop."; readonly noHint: "No proved hint is available."; readonly row: "Row"; readonly column: "column"; readonly clue: "number"; readonly blank: "no number"; readonly edge: "edge"; }; readonly ja: { readonly title: "スリザーリンク"; readonly help: "点を縦横の線でつなぎ、一つの閉じた輪を作ります。数字はそのマスを囲む四辺のうち、輪になる辺の数です。数字のないマスは何辺でも構いません。輪を分岐させたり、別々の輪に分けたりしません。線をタップ、クリック、または選んでEnterかSpaceを押します。矢印キーで辺を移動します。"; readonly undo: "戻す"; readonly hint: "ヒント"; readonly check: "確かめる"; readonly restart: "やり直す"; readonly expand: "盤だけ"; readonly close: "閉じる"; readonly won: "一つの輪ができました。完成!"; readonly helped: "ヒントを使って完成!"; readonly checked: "ここまでルールに合っています。輪を続けましょう。"; readonly wrong: "数字のマス、分岐、輪のつながりを確かめましょう。"; readonly hintWhy: "唯一の解答に含まれる辺です。"; readonly noHint: "確かなヒントがありません。"; readonly row: "行"; readonly column: "列"; readonly clue: "数字"; readonly blank: "数字なし"; readonly edge: "辺"; }; }
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
en | { readonly title: "Loop"; readonly help: "Connect adjacent dots with horizontal and vertical edges to make one closed loop. Each number says how many of its four bordering edges are in the loop. Empty cells may have any number of edges. The loop cannot branch or split into separate loops. Click or tap an edge, or focus it and press Enter or Space. Arrow keys move between edges."; readonly undo: "Undo"; readonly hint: "Hint"; readonly check: "Check"; readonly restart: "Restart"; readonly expand: "Just the board"; readonly close: "Close"; readonly won: "One closed loop. Solved!"; readonly helped: "Solved with help."; readonly checked: "No rule conflicts so far. Keep drawing the loop."; readonly wrong: "Check the numbered cells, branches and loop connections."; readonly hintWhy: "This edge is part of the only proved loop."; readonly noHint: "No proved hint is available."; readonly row: "Row"; readonly column: "column"; readonly clue: "number"; readonly blank: "no number"; readonly edge: "edge"; } | |
ja | { readonly title: "スリザーリンク"; readonly help: "点を縦横の線でつなぎ、一つの閉じた輪を作ります。数字はそのマスを囲む四辺のうち、輪になる辺の数です。数字のないマスは何辺でも構いません。輪を分岐させたり、別々の輪に分けたりしません。線をタップ、クリック、または選んでEnterかSpaceを押します。矢印キーで辺を移動します。"; readonly undo: "戻す"; readonly hint: "ヒント"; readonly check: "確かめる"; readonly restart: "やり直す"; readonly expand: "盤だけ"; readonly close: "閉じる"; readonly won: "一つの輪ができました。完成!"; readonly helped: "ヒントを使って完成!"; readonly checked: "ここまでルールに合っています。輪を続けましょう。"; readonly wrong: "数字のマス、分岐、輪のつながりを確かめましょう。"; readonly hintWhy: "唯一の解答に含まれる辺です。"; readonly noHint: "確かなヒントがありません。"; readonly row: "行"; readonly column: "列"; readonly clue: "数字"; readonly blank: "数字なし"; readonly edge: "辺"; } |
例
import { LOOP_STRINGS } from "@johnmorrisdotca/kazu/loop/play";
console.log(Object.keys(LOOP_STRINGS.en));[
'title', 'help', 'undo',
'hint', 'check', 'restart',
'expand', 'close', 'won',
'helped', 'checked', 'wrong',
'hintWhy', 'noHint', 'row',
'column', 'clue', 'blank',
'edge'
]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。