Skip to content
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

Missing translation in TooManyLoginAttemptsAuthenticationException #54914

Closed
jafio opened this issue May 13, 2024 · 0 comments
Closed

Missing translation in TooManyLoginAttemptsAuthenticationException #54914

jafio opened this issue May 13, 2024 · 0 comments

Comments

@jafio
Copy link

jafio commented May 13, 2024

Symfony version(s) affected

6.4.6

Description

The class TooManyLoginAttemptsAuthenticationException return a message based on the value of threshold class member. if this value is bigger than 1, there are a plural mark. unfortunaly, there is no translation of this message with the plural mark so the message is always in english

How to reproduce

  1. Setup a login with rate limiter and enable the translation of the app.
  2. Access to the login page with a language that is not English (tested in french but the problem should be there with other languages)
  3. try many invalid login attempts to trigger an error from the rate limiter
  4. If the time in minutes is greater than 1, the message is in english even if the rest of the page is in another language

Possible Solution

add a <trans-unit> in files that are in symfony/security-core/Resources/translations

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants