Handle version 3.0 of flask-babel

This commit is contained in:
Ozzie Isaacs
2023-01-22 12:09:19 +01:00
parent c21a870b8e
commit 94a6931d48
3 changed files with 9 additions and 8 deletions

View File

@@ -9,8 +9,6 @@ log = logger.create()
babel = Babel()
@babel.localeselector
def get_locale():
# if a user is logged in, use the locale from the user settings
user = getattr(g, 'user', None)