summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server.py3
1 files changed, 3 insertions, 0 deletions
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")