Flask-Babel not working on the login page
问题 I have a Flask/Dash app that uses the Flask-Babel module. The translation works like a charm after logging in and browsing through pages. However, I cannot make it work for the login page which will always be displayed in English. The messages.po and messages.mo both contain the translation strings I prepared for the login page, so the compilation part seems to work fine. Here's a snippet from my app.py (with a hard-coded choice of Spanish): import dash from dash.dependencies import Input,