Flask + Flask-Security + Babel not working
问题 I have setup with Flask + Babel + Flask Security. Created all translation like this: root main.py translations ru LC_MESSAGES messages.mo messages.po In main.py there is part to setup language which executes: @babel.localeselector def get_locale(): user = getattr(g, 'user', None) if user is not None: print("User locale {}".format(user.locale)) return user.locale # I put here constant to test return 'ru' But http://localhost/login stayed untranslated. Can you please advice where else to dig?