We are using babel extension for flask to translate the app. New translations are added using pybabel CLI with
pybabel extract -F babel.cfg -o translations/messages.pot flaskrThe new translations have to be added to the existing ones
pybabel update -i translations/messages.pot -d translationsThese translations have to be compiled to be used in the application
pybabel compile -d translations