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
+2 -2
View File
@@ -221,9 +221,9 @@ export function SetupWizard() {
if (!password || password.length < 8) {
form.setError('password', {
type: 'manual',
message: t('Password must be at least 8 characters long'),
message: t('Password must be at least 8 characters'),
})
toast.error(t('Password must be at least 8 characters long'))
toast.error(t('Password must be at least 8 characters'))
return false
}