feedback5 W5S: i18n phase 2, ui game logic — phase banners and capsule labels, placement and shop refusal reasons, reward offer headers, the ready prompt, watch / view-switcher labels, statuses, bond tips through t(); fmtNum writes K / M / B in English (万 / 亿 count in 10⁴ steps); English for the 6 new msgids; Chinese output unchanged (zh render proof; two rewrites checked by hand)

This commit is contained in:
sganggs committed 2026-10-06 18:13:55 +08:00
1 parent 647bd23ef2
commit 5741dc129b
10 files changed
+108 -85

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
// ui/gameLogic/result.js — end-of-match result normalisation. Re-exported from ../gameLogic.js.
import { int, isObj, sortedPlayers } from './shared.js';
import { t } from '../../../../shared/i18n.js';
// ---- result -----------------------------------------------------------------------------------------------------------
@@ -24,7 +25,7 @@ export function normalizeResult(res, pub) {
return {
playerId: p.playerId,
seat: int(p.seat, int(pp.seat, 0)),
name: p.name || pp.name || '博士',
name: p.name || pp.name || t('博士'),
isBot: !!(p.isBot ?? pp.isBot),
alive,
lp: teamLp != null ? (alive === false ? 0 : Math.max(0, teamLp)) : ownLp,