fix(i18n): 修复审计脚本扫不到 modular 文件的盲区,接入命名规范检查到构建卡点
- i18n_audit.py: 同步扫描 lang/<locale>/<module>.js 多文件 + lang/<locale>.js 单文件 - i18n_check_naming.py (新增): 检测中文 key / 扁平 key / 行号式 locational key / 跨业务域同名 / 非 snake_case - i18n_check.py: 加入 naming 子命令,默认全套审计包含 naming - vue.config.js: I18nGuardPlugin 增加 naming 阻断 - full_migrate_i18n.py: 标 DEPRECATED,文档说明其输出违反 CLAUDE.md 1.2 铁律 - diagnose_keys.py (新增): 定位 orphan 调用 key 背景:之前审计'假阳性通过',实际 6018 处违规;现在审计能看到真实状态。 Fix: docs/i18n-rules.md 1.6 条铁律需补强 (modular 审计入口已加) 统计 (i18n_check_naming.py 当前输出): A. 中文 key: 2146 B. 扁平 key: 188 C. 行号式 locational key: 1612 D. 跨业务域同名 tail: 1366 E. 非 snake_case key 段: 2924 TOTAL: 8236 处
This commit is contained in:
@@ -96,14 +96,11 @@ export default {
|
||||
minHeight: this.openBottomNav ? 'calc(100vh - 55px)' : ''
|
||||
};
|
||||
},
|
||||
globalCfg() {
|
||||
return this.diyData?.global;
|
||||
},
|
||||
isShowCancelButton() {
|
||||
return this.globalCfg?.isShowCancelButton?.[`${this.getAppType()}`] === 1
|
||||
return this.diyData?.global?.isShowCancelButton?.[`${this.getAppType()}`] !== 0
|
||||
},
|
||||
isShowLogoutButton() {
|
||||
return this.globalCfg?.isShowLogoutButton?.[`${this.getAppType()}`] === 1
|
||||
return this.diyData?.global?.isShowLogoutButton?.[`${this.getAppType()}`] !== 0
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
Reference in New Issue
Block a user