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

The CSRF error messages are not translated #583

Open
azmeuk opened this issue Oct 11, 2023 · 0 comments
Open

The CSRF error messages are not translated #583

azmeuk opened this issue Oct 11, 2023 · 0 comments

Comments

@azmeuk
Copy link
Member

azmeuk commented Oct 11, 2023

https://github.com/wtforms/flask-wtf/blob/e9f085dfc1ab951613ed2d31feafc7557ed5f914/src/flask_wtf/csrf.py#L99-L115

Even if those messages should not been seen that often, I do have users reporting that they encountered CSRF errors in production projects. For that reason, that would be nice if the messages be localized.

I suppose there is something to do with field.gettext but starting translating strings in flask-wtf would require to set up a whole i18n stack (catalogs, weblate etc.) like this is done in wtforms.

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

No branches or pull requests

1 participant