fix: localize registration error message

Replace hardcoded "Registration failed" with localized message
using new translation key 'user.auth.registrationFailed' with
more informative text.

Co-authored-by: kolaente <13721712+kolaente@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-28 11:15:04 +00:00
parent 6f48b840a1
commit 8dfa9273f3
2 changed files with 4 additions and 3 deletions

View File

@@ -68,7 +68,8 @@
"alreadyHaveAnAccount": "Already have an account?", "alreadyHaveAnAccount": "Already have an account?",
"remember": "Stay logged in", "remember": "Stay logged in",
"registrationDisabled": "Registration is disabled.", "registrationDisabled": "Registration is disabled.",
"passwordResetTokenMissing": "Password reset token is missing." "passwordResetTokenMissing": "Password reset token is missing.",
"registrationFailed": "An error occurred during registration. Please check your input and try again."
}, },
"settings": { "settings": {
"title": "Settings", "title": "Settings",

View File

@@ -266,10 +266,10 @@ async function submit() {
serverValidationErrors.value = fieldErrors serverValidationErrors.value = fieldErrors
} else { } else {
// Fallback to general error message if no field errors // Fallback to general error message if no field errors
errorMessage.value = e.message || 'Registration failed' errorMessage.value = e.message || t('user.auth.registrationFailed')
} }
} else { } else {
errorMessage.value = 'Registration failed' errorMessage.value = t('user.auth.registrationFailed')
} }
} }
} }