-
-
Notifications
You must be signed in to change notification settings - Fork 612
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
Translate message errors #973
Conversation
I just noted that on the original PR translations are made in the authenticator. It may be a better choice as the listener can be changed by the developer. Let me know if I missed something and should update to translate in the authenticators too or only in them. Thank you [EDIT] also, not sure why the tests fail... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the PR. Here are some suggestions :)
Don't worry about the failing tests, it's unrelated. I need to look into them, sorry about that. |
Thank you for this quick review! I updated the code accordingly. (sorry for the multiple push force, I struggled with my gpg key...) Also note about this comment above:
Should I update the other place where |
Sorry I was unsure to understand your question, got it now. |
Hi @chalasr, Thanks I just added translator in both authenticators (JWT and JWTToken). |
Hi @chalasr Thanks |
No worries, it's due to a Symfony bug revealed by your changes. See symfony/symfony#44918 for the fix. |
Thanks @flohw for working on this feature, this is much appreciated. |
Hi @chalasr,
The exception messages are not translated even if the locale was set.
I largely
copiedinspired my code from this PR: symfony/symfony#38037 to translate the message.Let me know if any changes need to be done.