diff options
| author | Alexandre Flament <alex@al-f.net> | 2023-01-27 10:43:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-27 10:43:17 +0100 |
| commit | 28356f4284ad3cb20b908ee0867cd86389be5d1b (patch) | |
| tree | 20fbfbee15a02542768cad10daec17f21b79a9b8 /searx/locales.py | |
| parent | 522ba9a14b7872d95e3ae61bc3a652b50100cc3d (diff) | |
| parent | 70fff2ebf1a04a35ea650bb2251c0e1ba43e5015 (diff) | |
Merge pull request #2115 from searxng/dependabot/pip/master/flask-babel-3.0.0
Bump flask-babel from 2.0.0 to 3.0.0
Diffstat (limited to 'searx/locales.py')
| -rw-r--r-- | searx/locales.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/locales.py b/searx/locales.py index 8547e7fa7..9e06bf39d 100644 --- a/searx/locales.py +++ b/searx/locales.py @@ -86,7 +86,7 @@ def get_translations(): use_translation = flask.request.form.get('use-translation') if use_translation in ADDITIONAL_TRANSLATIONS: babel_ext = flask_babel.current_app.extensions['babel'] - return Translations.load(next(babel_ext.translation_directories), use_translation) + return Translations.load(babel_ext.translation_directories[0], use_translation) return _flask_babel_get_translations() |