diff options
| author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2023-01-20 09:19:18 +0000 |
|---|---|---|
| committer | Alexandre Flament <alex@al-f.net> | 2023-01-20 09:38:30 +0000 |
| commit | 70fff2ebf1a04a35ea650bb2251c0e1ba43e5015 (patch) | |
| tree | 8d1ea83d30e70355d0278f708278ec849cb78dc2 /searx/locales.py | |
| parent | eed9b09d98d42501ff6782041868db4267fca7d5 (diff) | |
Bump flask-babel from 2.0.0 to 3.0.0
Bumps [flask-babel](https://github.com/python-babel/flask-babel) from 2.0.0 to 3.0.0.
- [Release notes](https://github.com/python-babel/flask-babel/releases)
- [Changelog](https://github.com/python-babel/flask-babel/blob/master/CHANGELOG)
- [Commits](https://github.com/python-babel/flask-babel/compare/v2.0.0...v3.0.0)
---
updated-dependencies:
- dependency-name: flask-babel
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
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() |