fix(auth): align password validation copy (#5759)

* fix(i18n): add missing frontend translations

- add missing locale entries for API key loading, channel model empty states, auth, playground, and model configuration copy.
- correct inaccurate Russian and Vietnamese model empty-state translations to avoid fallback or misleading copy.

* fix(auth): align password validation copy

- remove the login password length gate so existing shorter passwords are not blocked before reaching the server.
- reuse distinct minimum-length and 8-20 character messages based on the actual validation rule.
- drop unused duplicate password locale keys and align the user creation placeholder with the 8-20 character constraint.

* fix(i18n): add auth validation message translations

- cover schema-driven auth form errors that are translated through FormMessage.
- keep password, username, confirmation, and OTP validation messages available in every locale.
This commit is contained in:
QuentinHsu
2026-06-27 17:28:24 +08:00
committed by GitHub
parent 966af88ec3
commit df5ba9fa5c
9 changed files with 49 additions and 22 deletions
+7 -2
View File
@@ -1609,7 +1609,6 @@
"Enter only a top-level callback domain, for example https://api.example.com, without any path.": "只填写回调顶级域名,例如 https://api.example.com,不要带任何路径。",
"Enter password": "输入密码",
"Enter password (8-20 characters)": "输入密码(8-20 个字符)",
"Enter password (min 8 characters)": "请输入密码(至少 8 个字符)",
"Enter quota in {{currency}}": "输入 {{currency}} 额度",
"Enter quota in tokens": "输入令牌配额",
"Enter secret key": "输入密钥",
@@ -3123,12 +3122,13 @@
"Password has been copied to clipboard": "密码已复制到剪贴板",
"Password Login": "密码登录",
"Password must be at least 8 characters": "密码必须至少 8 个字符",
"Password must be at least 8 characters long": "密码必须至少 8 个字符",
"Password must be at most 20 characters long": "密码最多 20 个字符",
"Password must be between 8 and 20 characters": "密码长度必须在 8 到 20 个字符之间",
"Password Registration": "密码注册",
"Password reset and copied to clipboard: {{password}}": "密码已重置并复制到剪贴板:{{password}}",
"Password reset: {{password}}": "密码已重置:{{password}}",
"Passwords do not match": "密码不匹配",
"Passwords don't match.": "两次输入的密码不一致。",
"Path": "路径",
"Path not set": "未设置路径",
"Path Regex (one per line)": "路径正则(每行一个)",
@@ -3219,8 +3219,10 @@
"Please agree to the legal terms first": "请先同意法律条款",
"Please complete the security check to continue.": "请完成安全验证以继续。",
"Please confirm that you understand the consequences": "请确认您了解后果",
"Please confirm your password": "请确认密码",
"Please enable io.net model deployment service and configure an API key in System Settings.": "请先在系统设置中启用 io.net 模型部署服务,并配置 API Key。",
"Please enable Two-factor Authentication or Passkey before proceeding": "请先启用双因素认证或通行密钥",
"Please enter a code.": "请输入验证码。",
"Please enter a name": "请输入名称",
"Please enter a new password": "请输入新密码",
"Please enter a redemption code": "请输入兑换码",
@@ -3242,6 +3244,9 @@
"Please enter your current password": "请输入当前密码",
"Please enter your email": "请输入您的电子邮件",
"Please enter your email first": "请先输入您的邮箱",
"Please enter your password": "请输入密码",
"Please enter your username": "请输入用户名",
"Please enter your username or email": "请输入用户名或邮箱",
"Please enter your verification code": "请输入您的验证码",
"Please enter your verification code or backup code": "请输入您的验证码或备用码",
"Please fix JSON errors before saving": "请先修复 JSON 错误再保存",