refactor(i18n): U34 System & User 模块 i18n 清理 — ProfilePage + ResetPasswordDialog + SystemRolesTab + LdapManagementSection 4 文件 UI 硬编码中文清零
- ProfilePage.tsx: 从零接入 useTranslation,基本信息/安全设置/密码修改/用户名邮箱手机/账号来源 15 处中文→t() - ResetPasswordDialog.tsx: 从零接入 useTranslation,重置密码标题/描述/LDAP提示/新密码确认密码/确认重置 11 处中文→t() - SystemRolesTab.tsx: 权限分组标签(云资源/自动化/审批/审计)+toast 校验+confirm description+角色计数+空状态+权限列表计数+编码标签+尾部文案 12 处中文→t()/i18n.t() - LdapManagementSection.tsx: 验证按钮+根OU标签+创建按钮×2+导入按钮+编辑用户描述 8 处中文→t() - 新增 user.profile.* 14键 + user.resetPwd.* 11键 + system.* 16键 共 41 翻译键 - zh/en 7524→7565 +41 对齐 - tsc -b=0, npm build✓ (16.05s), ESLint errors=0/any=0/unused=0, go build=0 - 17/17 集成回归测试通过
This commit is contained in:
1 parent
ad9acea1e5
commit
0dbb85f5b8
7 files changed
+141
-46
No files matched your search
@@ -7455,7 +7455,23 @@
|
||||
"loadFailed": "加载审计设置失败",
|
||||
"invalidRetentionDays": "请选择有效的保留天数",
|
||||
"noExpiredRecords": ",无超期记录"
|
||||
}
|
||||
},
|
||||
"permCloudResource": "云资源",
|
||||
"permAutomation": "自动化",
|
||||
"permApproval": "审批",
|
||||
"permAudit": "审计",
|
||||
"roleCodeRequired": "请输入角色编码",
|
||||
"confirmDeleteRoleDesc": "确认删除角色「{{name}}」吗?该操作不可恢复。",
|
||||
"roleCount": "{{count}} 个角色",
|
||||
"noRoleData": "暂无角色数据",
|
||||
"permListCount": "权限列表 ({{count}} 项)",
|
||||
"roleCodeLabel": "编码:{{code}}",
|
||||
"testConnection": "验证",
|
||||
"rootOu": "根 ({{dn}})",
|
||||
"importSelected": "导入 ({{count}})",
|
||||
"importAll": "导入全部 ({{count}})",
|
||||
"editLdapUserDesc": "修改 {{uid}} 的属性",
|
||||
"permEffectTrailing": ",修改后用户需重新登录生效。"
|
||||
},
|
||||
"aiops": {
|
||||
"title": "AIOps 智能",
|
||||
@@ -8273,6 +8289,35 @@
|
||||
"credentialCopied": "凭证已复制",
|
||||
"saved": "我已保存",
|
||||
"placeholderToken": "你的访问凭证"
|
||||
},
|
||||
"profile": {
|
||||
"basicInfo": "基本信息",
|
||||
"security": "安全设置",
|
||||
"changePwd": "修改登录密码",
|
||||
"currentPwd": "当前密码",
|
||||
"newPwd": "新密码",
|
||||
"savePwd": "保存密码",
|
||||
"username": "用户名",
|
||||
"email": "邮箱",
|
||||
"phone": "手机",
|
||||
"authSource": "账号来源",
|
||||
"local": "本地",
|
||||
"pwdChanged": "密码已修改",
|
||||
"pwdChangeFailed": "修改失败",
|
||||
"defaultUser": "用户"
|
||||
},
|
||||
"resetPwd": {
|
||||
"title": "重置密码",
|
||||
"desc": "为「{{name}}」设置新密码",
|
||||
"ldapHint": "LDAP 用户请在 LDAP 目录中管理密码,不支持本地重置。",
|
||||
"newPwd": "新密码",
|
||||
"newPwdPlaceholder": "至少 6 位",
|
||||
"confirmPwd": "确认密码",
|
||||
"confirmPlaceholder": "再次输入新密码",
|
||||
"confirm": "确认重置",
|
||||
"success": "密码已重置",
|
||||
"successDesc": "用户 {{name}} 的新密码已生效",
|
||||
"failed": "重置失败"
|
||||
}
|
||||
},
|
||||
"logCenter": {
|
||||
|
||||
Reference in new issue
Block a user