python-babel / flask-babel

i18n and l10n support for Flask based on Babel and pytz
https://python-babel.github.io/flask-babel/
Other
432 stars 159 forks source link

v3.0.0 - Removing all format_ wrappers, cleanups, and code quality. #174

Closed TkTech closed 1 year ago

TkTech commented 3 years ago

We currently (v1, v2) duplicate all of the babel.dates and babel.numbers format_* methods in Flask-Babel. This is a lot of completely unnecessary duplication, including docstrings and test coverage. We're also often out of date with babel's methods, such as when new kwargs are added. Just like flask-wtf did way back, we should chuck this and become just the glue layer between Flask and Babel. In general, the only change in your code is to add format_decimal(..., locale=get_locale()).

Because this PR reduces our surface area significantly, lets make it a goal to get 100% test coverage.

The v3.* family aims to be the last breaking release for quite awhile.