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

Improve support for 2FA and unified signin method localizations. #889

Merged
merged 1 commit into from Dec 19, 2023

Conversation

jwag956
Copy link
Member

@jwag956 jwag956 commented Dec 18, 2023

Improve on recent PR that adds support for 2FA method translations - it didn't actually call a localize_callback to translate the data.

Add tests to verify actual xlation is occurring.

Remove support for Flask-BabelEx.

Use Babel.format_lists to construct the list of existing setup unified signup methods - moving this from the template to the view.

Fix view_scaffold localization configuration.

@gissimo When I wrote some tests - I (re) learned that in Flask-Security '_' is just a marker for strings to translate - it doesn't actually do any translation - so minor change to fix that.

unified signin has very similar 'methods' - so combined that with what you did. Minor wording changes - let me know of any concerns.

Copy link

codecov bot commented Dec 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3018dde) 98.33% compared to head (164452c) 98.29%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #889      +/-   ##
==========================================
- Coverage   98.33%   98.29%   -0.05%     
==========================================
  Files          34       34              
  Lines        4453     4465      +12     
==========================================
+ Hits         4379     4389      +10     
- Misses         74       76       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Improve on recent PR that adds support for 2FA method translations - it didn't actually call a localize_callback to translate the data.

Add tests to verify actual xlation is occurring.

Remove support for Flask-BabelEx.

Use Babel.format_lists to construct the list of existing setup unified signup methods - moving this from the template to the view.

Fix view_scaffold localization configuration.
@jwag956 jwag956 merged commit 9cb959a into master Dec 19, 2023
16 of 17 checks passed
@jwag956 jwag956 deleted the xlate7 branch December 19, 2023 15:51
@gissimo
Copy link
Contributor

gissimo commented Dec 20, 2023

Great, thanks and sorry for the drawback. I will update translation strings accordingly.

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

Successfully merging this pull request may close these issues.

None yet

2 participants