Files
lucky_shop/scripts/lang_audit_report.json
ZF sun 2d7d7f731c fix(remote lang tree): 修复命名空间被基本类型值覆盖的bug
修复remote-only模式下语言包归一化的历史bug:当页面leaf顶层存在与命名空间同名的字符串键时,会覆盖整个namespace导致子key失效。通过对齐normalizePageLangPack的两层合并逻辑来修复:
1. 先将页面语言包按路径段转为命名空间结构再合并
2. 额外平铺leaf的基本类型键到根节点以兼容短key调用
2026-07-04 09:25:01 +08:00

91 lines
2.2 KiB
JSON

{
"bundle_version": "1782901586",
"bundle_lang": "zh-cn",
"bundle_source": "merged",
"bundle_leaves": 2649,
"code_calls_total": 2692,
"code_unique_keys": 2092,
"found_in_bundle": 2084,
"missing_summary": {
"SYNTAX_BUG": 7,
"LOCALLY_DEFINED": 1
},
"missing_locally_defined": [
{
"key": "welcomeText",
"category": "LOCALLY_DEFINED",
"evidence": "zh-cn: login\\login nested:welcomeText='您好,<br />欢迎使用' | en-us: login\\login nested:welcomeText",
"usage_count": 1,
"files": [
"common\\js\\lang.js"
]
}
],
"missing_syntax_bugs": [
{
"key": "components-diy.xxx",
"category": "SYNTAX_BUG",
"evidence": "placeholder/example string (e.g. 'components.foo.title')",
"usage_count": 1,
"files": [
"common\\js\\lang.js"
]
},
{
"key": "components.privacyPopup.xxx",
"category": "SYNTAX_BUG",
"evidence": "placeholder/example string (e.g. 'components.foo.title')",
"usage_count": 1,
"files": [
"common\\js\\lang.js"
]
},
{
"key": "components.xxx",
"category": "SYNTAX_BUG",
"evidence": "placeholder/example string (e.g. 'components.foo.title')",
"usage_count": 1,
"files": [
"common\\js\\lang.js"
]
},
{
"key": "key",
"category": "SYNTAX_BUG",
"evidence": "trailing dot or generic identifier",
"usage_count": 2,
"files": [
"common\\js\\lang.js"
]
},
{
"key": "order.list.status.",
"category": "SYNTAX_BUG",
"evidence": "trailing dot or generic identifier",
"usage_count": 1,
"files": [
"pages_order\\list.vue"
]
},
{
"key": "title",
"category": "SYNTAX_BUG",
"evidence": "trailing dot or generic identifier",
"usage_count": 3,
"files": [
"common\\js\\lang.js"
]
},
{
"key": "xxx",
"category": "SYNTAX_BUG",
"evidence": "trailing dot or generic identifier",
"usage_count": 3,
"files": [
"common\\js\\lang.js",
"main.js"
]
}
],
"missing_truly_missing": []
}