Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Switch to Flask-Babel? #715

Open
dappiu opened this issue Oct 6, 2017 · 8 comments
Open

Switch to Flask-Babel? #715

dappiu opened this issue Oct 6, 2017 · 8 comments

Comments

@dappiu
Copy link

dappiu commented Oct 6, 2017

I just want to check what others think about Flask-Babelex...

As of today the two are not API-compatible anymore. Flask-Babelex development seem stuck and Flask-Babel in the recent days got some interesting updates (for example a wrapper for speaklater._LazyString that permits lazy strings to be serialized by Flask's JSON encoder).

I thought I could use Flask-Babel and Flask-Babelex in the same project, but this causes problems because the extension inside Flask is named babel in both cases and this causes one of the two getting overwritten by the other.

Is this problem felt by others too?

Cheers

@df7cb
Copy link

df7cb commented Dec 5, 2017

I'm co-maintaining the Debian package of flask-security (yet to be uploaded), and babelex is causing headaches because of the issues mentioned by @dappiu. Also, the newly added dependency on speaklater is suboptimal, as we only recently got rid of the python-speaklater package in Debian because it is dead upstream. We (Debian) are sticking with flask-security 1.7.5 for now for these reasons.

@jirikuncar
Copy link
Contributor

@dappiu it should be possible to make the Flask-Babel and Flask-BabelEx interchangeable in Flask-Security. I would be happy to accept a PR.

@rnd0101
Copy link

rnd0101 commented Dec 23, 2017

Same concern here. I guess, Flask-BabelEx is needed for i18n to work correctly as Flask-Babel currently has just one translation domain.

@italomaia
Copy link

Maybe patching flask-babel with the missing features than chaning flask-security dependency is the way to go. Longer road, but one hell of a view.

@TimotheeJeannin
Copy link

@jirikuncar I think it would be better to use Flask-Babel instead of Flask-Babelex. Flask-Babelex is no longer maintained.

@TaaviE
Copy link

TaaviE commented Dec 1, 2018

Flask-Babelex combined with Flask-Babel used by other projects is really causing super annoying incompatibilities on Python 3.7 across distributions. It would be really appreciated if this dependency is dropped or at least there'd be an option to disable it's use.

@galeo
Copy link

galeo commented Dec 24, 2018

Hi @jirikuncar

I have opened a pull request to flask-babel that trying to support multiple translations with different message domains. Is there still a chance to switch from flask-babelex to flask-babel? I'd like to receive your feedback.

@jwag956
Copy link
Collaborator

jwag956 commented Jun 14, 2019

@galeo I have started a fork for Flask-Security - https://pypi.org/project/Flask-Security-Too/#description
and I would love to solve this issue - so if we could get an update of Flask-Babel with Domain support - I would change over immediately.

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

No branches or pull requests

9 participants