Fix language bug

This commit is contained in:
Christoph Hagen 2022-03-27 14:59:28 +02:00
parent c2521cab32
commit de5e684d12
3 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,8 @@ registeredName = localStorage.getItem('name');
didAcceptInvitation = localStorage.getItem('registered'); didAcceptInvitation = localStorage.getItem('registered');
var currentLang = 'de'; var currentLang = 'de';
if (window.navigator.language != 'de') { console.log(window.navigator.language);
if (window.navigator.language.includes('de')) {
currentLang = 'en'; currentLang = 'en';
} }
function localize() { function localize() {

View File

@ -17,7 +17,7 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="assets/festival.css?v=3"> <link rel="stylesheet" type="text/css" href="assets/festival.css?v=3">
<script src="assets/festival.js?v=10"></script> <script src="assets/festival.js?v=12"></script>
</head> </head>
<body> <body>
<div class="wrapper"> <div class="wrapper">

View File

@ -17,7 +17,7 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="assets/festival.css?v=3"> <link rel="stylesheet" type="text/css" href="assets/festival.css?v=3">
<script src="assets/festival.js?v=11"></script> <script src="assets/festival.js?v=12"></script>
</head> </head>
<body> <body>
<div class="wrapper"> <div class="wrapper">