From 24ffc6f529504c286d4719784fb34d405184cba0 Mon Sep 17 00:00:00 2001 From: Gregor Kikelj Date: Thu, 8 Jun 2023 00:17:12 +0200 Subject: global --- server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.py b/server.py index 6f968f3..893acb3 100644 --- a/server.py +++ b/server.py @@ -116,6 +116,9 @@ def apcall_global(): @app.route("/", methods=["GET"]) def index(): + user_language = request.accept_languages.best_match(["sl", "en"]) + if user_language == "en": + return render_template("index_global.html") app.logger.info("Zahteva za domačo stran") # discordLog(f"Zahteva za domačo stran ob {niceTime()}") return render_template("index.html") -- cgit v1.2.3