generated from micronaut-projects/micronaut-project-template
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I18n for Bean Validation constraint messages #485
Labels
Comments
There are news about this? Thanks |
Hello |
not yet |
sdelamo
added a commit
that referenced
this issue
Jan 31, 2025
sdelamo
added a commit
that referenced
this issue
Jan 31, 2025
Thanks ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Feature description
Hi all,
I'm trying to translate the constraint violation messages of Bean Validation in the user language. I have created a custom MessageSource with the correct property keys like 'javax.validation.constraints.Size.message' but seems that, the message is translated using the system locale only and not that of the user that I can retrieve from HttpRequest. From what I have discovered the DefaultValidator use the MessageSource without specifing any locale. I think that can be useful to plug a specific one instead. Thanks.
The text was updated successfully, but these errors were encountered: