From a18afd8a1d694dcd4ff51790c77e787e02de97a9 Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Sun, 27 Mar 2022 15:02:38 +0200 Subject: [PATCH] Fix language bug again --- Public/festival/assets/festival.js | 2 +- Public/festival/info.html | 2 +- Public/festival/register.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Public/festival/assets/festival.js b/Public/festival/assets/festival.js index 884ff6f..f389024 100644 --- a/Public/festival/assets/festival.js +++ b/Public/festival/assets/festival.js @@ -5,7 +5,7 @@ didAcceptInvitation = localStorage.getItem('registered'); var currentLang = 'de'; console.log(window.navigator.language); -if (window.navigator.language.includes('de')) { +if (!window.navigator.language.includes('de')) { currentLang = 'en'; } function localize() { diff --git a/Public/festival/info.html b/Public/festival/info.html index 396af16..4cea076 100644 --- a/Public/festival/info.html +++ b/Public/festival/info.html @@ -17,7 +17,7 @@ - +
diff --git a/Public/festival/register.html b/Public/festival/register.html index 23e692d..aa65b41 100644 --- a/Public/festival/register.html +++ b/Public/festival/register.html @@ -17,7 +17,7 @@ - +