Add IBAN validation using iban.js library

Implemented optional IBAN validation for the account form profile:
- Installed iban.js package for robust IBAN validation
- Added Zod validation with IBAN.isValid() for format checking
- Normalizes IBAN (removes spaces, uppercase) before storage
- Validates country-specific formats and checksums
- Added validation error messages in English and Croatian

🤖 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:23:11 +01:00
parent 86fa6a67fe
commit 216b08c12b
5 changed files with 38 additions and 4 deletions

View File

@@ -148,6 +148,8 @@
"iban-placeholder": "Unesite svoj IBAN",
"save-button": "Spremi",
"cancel-button": "Odbaci",
"validation": {}
"validation": {
"iban-invalid": "Neispravan IBAN format. Molimo unesite ispravan IBAN."
}
}
}