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

Fix translating after WTForms 3 removed form._get_translations #2473

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

cjmayo
Copy link
Contributor

@cjmayo cjmayo commented Jul 23, 2024

From #2467

Meta.get_translations is available in WTForms 2
https://wtforms.readthedocs.io/en/3.1.x/changes/#version-2-0

Upstream docs:
https://wtforms.readthedocs.io/en/3.1.x/i18n/#writing-your-own-translations-provider

I see they instantiate a new MyTranslations every time Meta.get_translations() is called though???

@samuelhwilliams
Copy link
Contributor

Thanks 👍

@samuelhwilliams samuelhwilliams merged commit 93493b9 into pallets-eco:master Jul 23, 2024
8 checks passed
@cjmayo cjmayo deleted the translating_wtforms3 branch July 25, 2024 18:46
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants