SUGOROKU_STRINGS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The native English and Japanese labels, announcements and interpolation templates.
インポート
import { SUGOROKU_STRINGS } from "@johnmorrisdotca/sugoroku/play";
定義
const SUGOROKU_STRINGS: Record<SugorokuLanguage, Record<string, string>>
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
en | Record<string, string> | |
ja | Record<string, string> |
例
import { SUGOROKU_STRINGS } from "@johnmorrisdotca/sugoroku/play";
console.log(SUGOROKU_STRINGS);{
en: {
variant_backgammon: 'Backgammon',
'variant_backgammon-race': 'Backgammon Race',
'variant_anti-backgammon': 'Anti-Backgammon',
variant_nackgammon: 'Nackgammon',
'variant_long-gammon': 'Long Gammon',
variant_hypergammon: 'Hypergammon',
variant_tabula: 'Tabula',
white: 'White',
black: 'Black',
computer: 'Computer',
you: 'You',
board: '{variant} board',
roll: 'Roll dice',
rollOpening: 'Roll to start',
done: 'Done',
undo: 'Undo',
double: 'Double',
take: 'Take',
drop: 'Drop',
beaver: 'Beaver',
nextGame: 'Next game',
newMatch: 'New match',
waitingDice: 'Waiting for the dice',
opening: 'Roll the dice: the higher die goes first.',
openingTie: 'A tie, {die} each. Roll again.',
started: '{side} goes first with {dice}.',
toRoll: '{side} to roll.',
toRollYou: 'Your roll.',
toPlay: '{side} to play {dice}.',
toPlayYou: 'Your move: {dice}.',
played: 'Turn played. Press Done.',
noMove: '{side} cannot move.',
noMoveYou: 'No legal move. Press Done.',
thinking: '{side} is thinking…',
doubled: '{side} doubles to {value}.',
answerDouble: '{side} doubles to {value}. Take it, or drop and lose {points}?',
beavered: '{side} beavers: the cube goes to {value}.',
answerBeaver: '{side} beavers to {value}. Take it, or drop and lose {points}?',
tookDouble: '{side} takes: the cube is {value}.',
singleGame: 'a single game',
gammon: 'a gammon',
backgammon: 'a backgammon',
wonBy: '{side} wins {kind}: {points}.',
wonDrop: '{side} wins: the double was dropped. {points}.',
wonConcede: '{side} wins: the other side gave up. {points}.',
drawn: 'The game is drawn.',
point: '{n} point',
points: '{n} points',
matchWon: '{side} wins the match, {a} to {b}.',
matchDrawn: 'The match is drawn.',
score: '{white} {a}, {black} {b}',
matchTo: 'match to {points}',
money: 'money play',
crawford: 'Crawford game: no cube',
cubeMiddle: 'cube in the middle',
cubeHeld: "cube {value}, {side}'s",
dice: 'dice {dice}'
},
ja: {
variant_backgammon: 'バックギャモン',
'variant_backgammon-race': 'バックギャモン・レース',
'variant_anti-backgammon': 'アンチ・バックギャモン',
variant_nackgammon: 'ナックギャモン',
'variant_long-gammon': 'ロングギャモン',
variant_hypergammon: 'ハイパーギャモン',
variant_tabula: 'タブラ',
white: '白',
black: '黒',
computer: 'コンピューター',
you: 'あなた',
board: '{variant}の盤',
roll: 'サイコロを振る',
rollOpening: '振って先攻を決める',
done: '終わり',
undo: '戻す',
double: 'ダブル',
take: 'テイク',
drop: 'ドロップ',
beaver: 'ビーバー',
nextGame: '次のゲーム',
newMatch: '新しいマッチ',
waitingDice: 'サイコロを待っています',
opening: 'サイコロを振ります。大きい目の方が先攻です。',
openingTie: '同じ目({die})です。もう一度振ります。',
started: '{side}が{dice}で先攻です。',
toRoll: '{side}の番です。サイコロを振ります。',
toRollYou: 'あなたの番です。サイコロを振ってください。',
toPlay: '{side}の番:{dice}',
toPlayYou: 'あなたの番:{dice}',
played: '動かし終わりました。「終わり」を押してください。',
noMove: '{side}は動かせません。',
noMoveYou: '動かせません。「終わり」を押してください。',
thinking: '{side}が考えています…',
doubled: '{side}がダブルして、キューブは{value}になりました。',
answerDouble: '{side}が{value}にダブルしました。テイクしますか、それともドロップして{points}を失いますか。',
beavered: '{side}がビーバーして、キューブは{value}になりました。',
answerBeaver: '{side}が{value}にビーバーしました。テイクしますか、それともドロップして{points}を失いますか。',
tookDouble: '{side}がテイクしました。キューブは{value}です。',
singleGame: 'シングルゲーム',
gammon: 'ギャモン',
backgammon: 'バックギャモン',
wonBy: '{side}の{kind}勝ち:{points}',
wonDrop: '{side}の勝ち。ダブルはドロップされました。{points}',
wonConcede: '{side}の勝ち。相手が降りました。{points}',
drawn: '引き分けです。',
point: '{n}ポイント',
points: '{n}ポイント',
matchWon: '{side}がマッチに勝ちました({a}対{b})。',
matchDrawn: 'マッチは引き分けです。',
score: '{white} {a}、{black} {b}',
matchTo: '{points}ポイントマッチ',
money: 'マネーゲーム',
crawford: 'クロフォードゲーム:キューブなし',
cubeMiddle: 'キューブは中央',
cubeHeld: 'キューブ{value}({side})',
dice: 'サイコロ {dice}'
}
}出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。