From bd7b91b9a7c7a7253cdb2887ee833b2431909392 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Thu, 23 May 2024 02:53:45 +0200 Subject: [PATCH] fixes automatic language selection --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 470ba69..7cc7743 100644 --- a/server.py +++ b/server.py @@ -40,7 +40,7 @@ def before_request(): @babel.localeselector 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"])