KUMIMOJI_STRINGS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The table's words in each language it speaks: KUMIMOJI_STRINGS.en, KUMIMOJI_STRINGS.ja.
インポート
import { KUMIMOJI_STRINGS } from "@johnmorrisdotca/kumimoji/ui";
ほかのエクスポート元: @johnmorrisdotca/kumimoji
定義
const KUMIMOJI_STRINGS: Readonly<Record<KumimojiLocale, KumimojiStrings>> = { en: EN, ja: JA }
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
en | KumimojiStrings | |
ja | KumimojiStrings |
例
import { KUMIMOJI_STRINGS } from "@johnmorrisdotca/kumimoji/ui";
console.log(KUMIMOJI_STRINGS);{
en: {
dealing: 'Dealing…',
loadError: 'The word list could not be loaded. Try again.',
leftOne: '1 tile left in the bag · {time}',
left: '{n} tiles left in the bag · {time}',
finished: 'Finished in {time}. Every tile laid, every run a word.',
tableLabel: 'The table',
tableKeys: 'Arrow keys move between squares, Enter or Space taps one, and Escape lets go of a tile you have picked up.',
handLabel: 'Your hand',
emptySquare: 'Empty square',
wildTile: '{tile}, wild',
wildBlank: 'Wild, no letter yet',
notWords: 'Not words: {words}',
apart: 'Every tile must join the one crossword.',
noTiles: 'No tiles in hand',
giveWild: 'Give the wild a letter:',
changeWild: "Change the wild's letter:",
draw: 'Draw',
trade: 'Trade for three',
sort: 'Sort',
liftAll: 'Lift all',
newGame: 'New game',
keep: 'Save and load',
saveJson: 'Save as JSON',
saveText: 'Save as text',
load: 'Load a game',
loaded: 'Game loaded.',
loadBad: 'That file is not a game of Kumimoji these rules can open.',
textTitle: 'Kumimoji: {language}, a hand of {hand}, seed {seed}',
textEmpty: '(no tiles on the table)',
textHand: 'Hand: {tiles}',
textHandEmpty: 'Hand: empty',
textLeft: 'In the bag: {n}',
textTime: 'Time: {time}',
textFinished: 'Finished: every tile laid, every run a word.',
english: 'English',
japanese: 'Japanese'
},
ja: {
dealing: '配っています…',
loadError: '単語の一覧を読み込めませんでした。もう一度お試しください。',
leftOne: '袋の残り1枚 · {time}',
left: '袋の残り{n}枚 · {time}',
finished: '{time}で完成しました。すべてのタイルを置き、どの並びも単語になっています。',
tableLabel: 'テーブル',
tableKeys: '矢印キーでマスを移動し、Enterキーかスペースキーでタップします。Escapeキーで、選んだタイルの選択を解除します。',
handLabel: '手札',
emptySquare: '空きマス',
wildTile: '{tile}(ワイルド)',
wildBlank: 'ワイルド(文字は未定)',
notWords: '単語ではありません: {words}',
apart: 'すべてのタイルを1つのクロスワードにつなげてください。',
noTiles: '手札にタイルはありません',
giveWild: 'ワイルドの文字を選んでください:',
changeWild: 'ワイルドの文字を変える:',
draw: '1枚引く',
trade: '1枚を3枚と交換',
sort: '並べ替え',
liftAll: 'すべて手札に戻す',
newGame: '新しいゲーム',
keep: '保存と読み込み',
saveJson: 'JSONで保存',
saveText: 'テキストで保存',
load: 'ゲームを読み込む',
loaded: 'ゲームを読み込みました。',
loadBad: 'このファイルは、開くことのできる組み文字のゲームではありません。',
textTitle: '組み文字: {language}、手札{hand}枚、シード {seed}',
textEmpty: '(テーブルにタイルはありません)',
textHand: '手札: {tiles}',
textHandEmpty: '手札: なし',
textLeft: '袋の残り: {n}枚',
textTime: '時間: {time}',
textFinished: '完成: すべてのタイルを置き、どの並びも単語になっています。',
english: '英語',
japanese: '日本語'
}
}出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。