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:
attacker committed 2026-07-12 21:29:58 +08:00
1 parent ad9acea1e5
commit 0dbb85f5b8
7 files changed
+141 -46

No files matched your search

+46 -1
View File
@@ -7455,7 +7455,23 @@
"loadFailed": "Failed to load audit settings",
"invalidRetentionDays": "Please select valid retention days",
"noExpiredRecords": ", no expired records"
}
},
"permCloudResource": "Cloud Resources",
"permAutomation": "Automation",
"permApproval": "Approval",
"permAudit": "Audit",
"roleCodeRequired": "Please enter role code",
"confirmDeleteRoleDesc": "Are you sure to delete role \"{{name}}\"? This action cannot be undone.",
"roleCount": "{{count}} roles",
"noRoleData": "No role data",
"permListCount": "Permissions ({{count}})",
"roleCodeLabel": "Code: {{code}}",
"testConnection": "Verify",
"rootOu": "Root ({{dn}})",
"importSelected": "Import ({{count}})",
"importAll": "Import All ({{count}})",
"editLdapUserDesc": "Modify attributes of {{uid}}",
"permEffectTrailing": ", changes take effect after user re-login."
},
"aiops": {
"title": "AIOps",
@@ -8273,6 +8289,35 @@
"credentialCopied": "Credential copied",
"saved": "I've saved it",
"placeholderToken": "Your access credential"
},
"profile": {
"basicInfo": "Basic Info",
"security": "Security",
"changePwd": "Change Login Password",
"currentPwd": "Current Password",
"newPwd": "New Password",
"savePwd": "Save Password",
"username": "Username",
"email": "Email",
"phone": "Phone",
"authSource": "Account Source",
"local": "Local",
"pwdChanged": "Password Changed",
"pwdChangeFailed": "Change Failed",
"defaultUser": "User"
},
"resetPwd": {
"title": "Reset Password",
"desc": "Set a new password for \"{{name}}\"",
"ldapHint": "LDAP users must manage passwords in the LDAP directory. Local reset is not supported.",
"newPwd": "New Password",
"newPwdPlaceholder": "At least 6 characters",
"confirmPwd": "Confirm Password",
"confirmPlaceholder": "Enter the new password again",
"confirm": "Confirm Reset",
"success": "Password Reset",
"successDesc": "New password for user {{name}} is now active",
"failed": "Reset Failed"
}
},
"logCenter": {