[Parity][frontend][S3][F] i18n:监听器抛的异常被吞掉;未知页面默认中文 #712

Closed
opened 2026-10-02 11:42:59 +00:00 by troytt · 1 comment
Owner

1.13c 客户端保真度审计立项(基准快照:7bd1090 / main @ 77a20c7)

证据标记说明:V-data = 1.13c MPQ 数据表 (.txt / animdata.d2 / .tbl / pal.pl2);V-src = D2MOO 逆向源码;V-bin = 1.13c DLL 反汇编;K = 1.13c 公认行为。

来源审计项:frontend#22 — [S3][F] i18n:监听器抛的异常被吞掉;未知页面默认中文

  • 位置:src/client/i18n/lang.ts:157-170(notifyListeners 里的 try/catch 吞掉监听器异常);:68、:126(路径不认识时也返回 'CHI' / 'zh')
  • 原版:不适用(web 专有逻辑)。但吞异常违反 AGENTS.md §3:语言切换时监听器出错(例如字体或 tbl 切换失败)会完全看不见。
  • 建议:监听器异常至少要上报;把默认语言规则写清楚。
  • 已有 issue:#534(i18n,部分覆盖)

> **1.13c 客户端保真度审计立项**(基准快照:`7bd1090` / `main @ 77a20c7`) > 证据标记说明:`V-data` = 1.13c MPQ 数据表 (`.txt` / `animdata.d2` / `.tbl` / `pal.pl2`);`V-src` = D2MOO 逆向源码;`V-bin` = 1.13c DLL 反汇编;`K` = 1.13c 公认行为。 ### 来源审计项:`frontend#22` — [S3][F] i18n:监听器抛的异常被吞掉;未知页面默认中文 - 位置:`src/client/i18n/lang.ts:157-170`(`notifyListeners` 里的 try/catch 吞掉监听器异常);`:68`、`:126`(路径不认识时也返回 'CHI' / 'zh') - 原版:不适用(web 专有逻辑)。但吞异常违反 AGENTS.md §3:语言切换时监听器出错(例如字体或 tbl 切换失败)会完全看不见。 - 建议:监听器异常至少要上报;把默认语言规则写清楚。 - 已有 issue:#534(i18n,部分覆盖) ---
Author
Owner

Resolved in commit 0897bf6 on main (Batch 7 & 8 Phase 2). Verified via tsc and vitest unit tests.

Resolved in commit 0897bf6 on main (Batch 7 & 8 Phase 2). Verified via tsc and vitest unit tests.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: troytt/diablo2-web#712
No description provided.