Skip to content

Commit

Permalink
fixes automatic language selection
Browse files Browse the repository at this point in the history
  • Loading branch information
OniriCorpe committed May 23, 2024
1 parent 7dd7202 commit bd7b91b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit bd7b91b

Please sign in to comment.