Closed alhman closed 3 years ago
https://flask.palletsprojects.com/en/1.1.x/cli/#watch-extra-files-with-the-reloader
This worked before because flask-babel was reloading the .mo files on each request, which is just terrible.
Thanks! This makes sense. Did reloading on each request in previous flask-babel occur only in development mode or also in production?
Using the latest version and setting FLASK_RUN_EXTRA_FILES in development mode works fine. Would it make sense to add a short note about reloading in the documentation?
It occurred always. It was one of the reasons Flask-BabelEx existed.
A PR adding documentation would be welcomed.
Hi,
when I change a translation in the .po file and then compile the messages with
pybabel compile
the translations are not updated in the application until I stop and restart the flask server (flask run
).With Flask-Babel 1.0.0 this worked perfectly fine (i.e. no server restart necessary) and only occurs with 2.0.0