Internationalize validation error message

Replaced hardcoded "Validation failed" message with translated
version from language files:
- Updated userProfileActions.ts to use t("validation-failed")
- Added translations in English and Croatian
- Reordered general-error div in AccountForm for better layout

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Knee Cola
2025-11-17 20:51:57 +01:00
parent 666443f76e
commit 9fda8cadba
4 changed files with 13 additions and 11 deletions

View File

@@ -151,7 +151,8 @@
"save-button": "Save",
"cancel-button": "Cancel",
"validation": {
"iban-invalid": "Invalid IBAN format. Please enter a valid IBAN"
"iban-invalid": "Invalid IBAN format. Please enter a valid IBAN",
"validation-failed": "Validation failed. Please check the form and try again."
}
}
}

View File

@@ -150,7 +150,8 @@
"save-button": "Spremi",
"cancel-button": "Odbaci",
"validation": {
"iban-invalid": "Neispravan IBAN format. Molimo unesite ispravan IBAN."
"iban-invalid": "Neispravan IBAN format. Molimo unesite ispravan IBAN.",
"validation-failed": "Validacija nije uspjela. Molimo provjerite formu i pokušajte ponovno."
}
}
}