mirror of
https://github.com/YunoHost/pepettes.git
synced 2024-09-03 20:06:20 +02:00
fixes automatic language selection
This commit is contained in:
parent
7dd7202d81
commit
bd7b91b9a7
1 changed files with 1 additions and 1 deletions
|
@ -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"])
|
||||||
|
|
Loading…
Reference in a new issue