🔥 remove(frontend-test): 删除源码文本断言型测试并补齐全局 i18n 校验

- 删除 105 个纯静态测试文件(6624 行):仅把源码当字符串断言、不执行被测代码
- 新增 testPolicy 守卫:禁止新增读源码文本的测试,131 个存量文件记入只减不增的基线
- 新增 i18n keyResolution:校验源码 t() 引用的 key 均可经完整解析链得到译文
- 新增 i18n catalogIntegrity:校验占位符跨语言一致、无空译文
- 补齐 6 个语言包缺失的 common.retry,修复审计面板重试按钮显示字面量 key

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Syngnat
2026-07-26 20:39:11 +08:00
parent 663ef8259b
commit 9074cd9707
115 changed files with 361 additions and 6624 deletions

View File

@@ -3204,6 +3204,7 @@
"common.named_item": "{{name}}",
"common.ok": "OK",
"common.refresh": "Aktualisieren",
"common.retry": "Erneut versuchen",
"common.save": "Speichern",
"common.search": "Suchen",
"common.success": "Erfolg",

View File

@@ -3204,6 +3204,7 @@
"common.named_item": "{{name}}",
"common.ok": "OK",
"common.refresh": "Refresh",
"common.retry": "Retry",
"common.save": "Save",
"common.search": "Search",
"common.success": "Success",

View File

@@ -3204,6 +3204,7 @@
"common.named_item": "{{name}}",
"common.ok": "OK",
"common.refresh": "更新",
"common.retry": "再試行",
"common.save": "保存",
"common.search": "検索",
"common.success": "成功",

View File

@@ -3204,6 +3204,7 @@
"common.named_item": "{{name}}",
"common.ok": "OK",
"common.refresh": "Обновить",
"common.retry": "Повторить",
"common.save": "Сохранить",
"common.search": "Поиск",
"common.success": "Успешно",

View File

@@ -3204,6 +3204,7 @@
"common.named_item": "{{name}}",
"common.ok": "确定",
"common.refresh": "刷新",
"common.retry": "重试",
"common.save": "保存",
"common.search": "搜索",
"common.success": "成功",

View File

@@ -3204,6 +3204,7 @@
"common.named_item": "{{name}}",
"common.ok": "確定",
"common.refresh": "重新整理",
"common.retry": "重試",
"common.save": "儲存",
"common.search": "搜尋",
"common.success": "成功",