Skip to content

Commit

Permalink
Merge pull request #3 from Rococoscarlet/main
Browse files Browse the repository at this point in the history
fix: 翻译漏过的提示文本
  • Loading branch information
dev-soragoto authored Dec 11, 2024
2 parents 8d7939f + 0180878 commit f5049ea
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
7 changes: 5 additions & 2 deletions src/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"baiman": "Baiman",
"haneman": "Haneman",
"mangan": "Mangan",
"multiYakuman": "{num}-Yakuman",
"sanbaiman": "Sanbaiman",
"yakuman": "Yakuman",
"multiYakuman": "{num}-Yakuman"
"yakuman": "Yakuman"
},
"message": {
"across": "Across",
Expand All @@ -29,6 +29,7 @@
"chooseTenpaiPlayer": "Choose Tenpai Player",
"confirm": "Confirm",
"contributors": "Contributors",
"dealinPlayerNotChosen": "Deal-in player not chosen!",
"delete": "delete",
"deleteSuccess": "Deleting successed",
"deposits": "deposits",
Expand Down Expand Up @@ -100,10 +101,12 @@
"topTakeDeposit": "Top player taker deposit",
"totalPointError": "Total points validation failed!",
"tsumo": "Tsumo",
"tsumoPlayerNotChosen": "Tsumo player not chosen!",
"uma": "Uma",
"usernameExisted": "Player already exists!",
"winAndStop": "Win & Stop",
"winds": "Rounds",
"winningPlayerNotChosen": "Winning player not chosen!",
"wins": "Wins"
},
"position": {
Expand Down
7 changes: 5 additions & 2 deletions src/locales/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"baiman": "倍満",
"haneman": "跳満",
"mangan": "満貫",
"multiYakuman": "{num}倍役満",
"sanbaiman": "三倍満",
"yakuman": "役満",
"multiYakuman": "{num}倍役満"
"yakuman": "役満"
},
"message": {
"across": "対面",
Expand All @@ -29,6 +29,7 @@
"chooseTenpaiPlayer": "聴牌の選手を選ぶ",
"confirm": "確認",
"contributors": "開発者",
"dealinPlayerNotChosen": "放銃プレイヤーを選択していません!",
"delete": "削除",
"deleteSuccess": "削除されました",
"deposits": "供託",
Expand Down Expand Up @@ -100,10 +101,12 @@
"topTakeDeposit": "供託はトップ取り",
"totalPointError": "合計ポイントの検証に失敗しました",
"tsumo": "ツモ",
"tsumoPlayerNotChosen": "ツモプレイヤーを選択していません!",
"uma": "ウマ",
"usernameExisted": "プレーヤーはすでに存在します!",
"winAndStop": "和了止め",
"winds": "場数",
"winningPlayerNotChosen": "ロンプレイヤーを選択していません!",
"wins": "勝つ"
},
"position": {
Expand Down
7 changes: 5 additions & 2 deletions src/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"baiman": "倍满",
"haneman": "跳满",
"mangan": "满贯",
"multiYakuman": "{num}倍役满",
"sanbaiman": "三倍满",
"yakuman": "役满",
"multiYakuman": "{num}倍役满"
"yakuman": "役满"
},
"message": {
"across": "对家",
Expand All @@ -29,6 +29,7 @@
"chooseTenpaiPlayer": "选择听牌玩家",
"confirm": "确定",
"contributors": "开发者们",
"dealinPlayerNotChosen": "未选择放铳玩家!",
"delete": "删除",
"deleteSuccess": "删除成功",
"deposits": "供托",
Expand Down Expand Up @@ -100,10 +101,12 @@
"topTakeDeposit": "完场场供归一位",
"totalPointError": "总分校验不通过!",
"tsumo": "自摸",
"tsumoPlayerNotChosen": "未选择自摸玩家!",
"uma": "顺位马",
"usernameExisted": "玩家已存在!",
"winAndStop": "和牌完场",
"winds": "局数",
"winningPlayerNotChosen": "未选择和了玩家!",
"wins": "获胜"
},
"position": {
Expand Down
6 changes: 3 additions & 3 deletions src/views/game/GameView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ const onTsumoRadioGroupChange = () => {
const onTsumoConfirm = () => {
resetPointChange()
if (winState.winner === '') {
Toast.error('未选择自摸玩家!')
Toast.error(t('message.tsumoPlayerNotChosen'))
return
}
Expand Down Expand Up @@ -1131,11 +1131,11 @@ const onFutsumoChange = (value: string) => {
const onRonConfirm = () => {
resetPointChange()
if (winState.winners.length < 1) {
Toast.error('未选择和了玩家!')
Toast.error(t('message.winningPlayerNotChosen'))
return
}
if (winState.loser === '') {
Toast.error('未选择放铳玩家!')
Toast.error(t('message.dealinPlayerNotChosen'))
return
}
Expand Down

0 comments on commit f5049ea

Please sign in to comment.