fixes automatic language selection

This commit is contained in:
OniriCorpe 2024-05-23 02:53:45 +02:00
parent 7dd7202d81
commit bd7b91b9a7

View file

@ -40,7 +40,7 @@ def before_request():
@babel.localeselector @babel.localeselector
def get_locale(): def get_locale():
return "fr" # request.accept_languages.best_match(app.config['LANGUAGES']) return request.accept_languages.best_match(app.config["LANGUAGES"])
@app.route("/", methods=["GET"]) @app.route("/", methods=["GET"])