CUBOID_WORDS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The cuboid's words in both languages.
インポート
import { CUBOID_WORDS } from "@johnmorrisdotca/kyuubu/cuboid";
定義
const CUBOID_WORDS: Readonly<Record<KyuubuLanguage, CuboidWords>> = {
en: {
cuboidLabel: "A {dims} cuboid",
faultUnknown: "“{token}” is not a move.",
faultNoSuchLayer: "“{token}” turns a layer this cuboid does not have.",
faultHalfTurnOnly: "“{token}” would be a quarter turn, and that layer is not square, so it only makes half turns. Write “{half}”.",
faultWholePuzzle: "“{token}” is a side one cubie deep, which is the whole puzzle: turning it moves nothing.",
faultDims: "That is not a cuboid: each side is a whole number from 1 to 7.",
faultLength: "That is too long to play.",
},
ja: {
cuboidLabel: "{dims}の直方体パズル",
faultUnknown: "「{token}」は回転記号ではありません。",
faultNoSuchLayer: "「{token}」はこの直方体にない層を回します。",
faultHalfTurnOnly: "「{token}」は1/4回転ですが、その層は正方形ではないので半回転しかできません。「{half}」と書いてください。",
faultWholePuzzle: "「{token}」は奥行きが1つだけの辺で、パズル全体です。回しても何も動きません。",
faultDims: "直方体ではありません。各辺は1から7までの整数です。",
faultLength: "長すぎて再生できません。",
},
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
en | CuboidWords | |
ja | CuboidWords |
例
import { CUBOID_WORDS } from "@johnmorrisdotca/kyuubu/cuboid";
console.log(Object.keys(CUBOID_WORDS.en).slice(0, 5));[
'cuboidLabel',
'faultUnknown',
'faultNoSuchLayer',
'faultHalfTurnOnly',
'faultWholePuzzle'
]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。