From 8dfa9273f36d970378916790f1598a7b6d7c75a3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 28 Nov 2025 11:15:04 +0000 Subject: [PATCH] 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> --- frontend/src/i18n/lang/en.json | 3 ++- frontend/src/views/user/Register.vue | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/i18n/lang/en.json b/frontend/src/i18n/lang/en.json index 711d50778..e772ea5fd 100644 --- a/frontend/src/i18n/lang/en.json +++ b/frontend/src/i18n/lang/en.json @@ -68,7 +68,8 @@ "alreadyHaveAnAccount": "Already have an account?", "remember": "Stay logged in", "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": { "title": "Settings", diff --git a/frontend/src/views/user/Register.vue b/frontend/src/views/user/Register.vue index 25b23f05f..210268ff4 100644 --- a/frontend/src/views/user/Register.vue +++ b/frontend/src/views/user/Register.vue @@ -266,10 +266,10 @@ async function submit() { serverValidationErrors.value = fieldErrors } else { // Fallback to general error message if no field errors - errorMessage.value = e.message || 'Registration failed' + errorMessage.value = e.message || t('user.auth.registrationFailed') } } else { - errorMessage.value = 'Registration failed' + errorMessage.value = t('user.auth.registrationFailed') } } }