feedback5 W5S: i18n phase 2, ui — HUD, shop bar, detail card, bond strip and popup, 机变 overlay, enemy drawer, team panel, under-frame, guide, emotes, match chrome, connection banner, components, the loadout / roster models, the store, net and observe texts through t() / tParts() (whole sentences where a number or a name sat inside), msgid tables marked N_() and translated where shown, the shop's refusal reasons compared through t(); tools/i18n.mjs reads aliased imports (t as tr); English for the 59 new msgids; Chinese output unchanged (zh render proof; five rewrites checked by hand, listed in the notes)
This commit is contained in:
1 parent
166c4fbbfb
commit
647bd23ef2
33 files changed
+530
-427
No files matched your search
+3
-2
@@ -21,6 +21,7 @@
|
||||
|
||||
import { useLayoutEffect, useReducer, useRef } from '../vendor/hooks.module.js';
|
||||
import { PHASE } from '../../shared/constants.js';
|
||||
import { t } from '../../shared/i18n.js';
|
||||
|
||||
/**
|
||||
* Create an observable store.
|
||||
@@ -125,8 +126,8 @@ export function isSpectating(room, playerId) {
|
||||
export function sessionResetNotice(prev, playerId) {
|
||||
const prevId = prev?.me?.playerId;
|
||||
if (prevId == null || prevId === playerId) return null;
|
||||
if (prev?.match?.public || prev?.room?.inMatch) return '服务器会话已重置,上一局模拟已结束';
|
||||
if (prev?.room) return '服务器会话已重置,已返回大厅';
|
||||
if (prev?.match?.public || prev?.room?.inMatch) return t('服务器会话已重置,上一局模拟已结束');
|
||||
if (prev?.room) return t('服务器会话已重置,已返回大厅');
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user