WIP **** WIP

funktioniert nur teilweise: Umschaltung auf en geht seltsamerwesie nicht
This commit is contained in:
rxf
2023-04-12 12:43:03 +02:00
parent c8682aa713
commit bf2aa26952
21 changed files with 370 additions and 57 deletions
+11
View File
@@ -0,0 +1,11 @@
// set correct language
let currentLang
const navLang = navigator.language.slice(0,2)
const selectedLang = localStorage.getItem('curlang')
if (!selectedLang) {
currentLang = navLang
} else {
currentLang = selectedLang
}
window.location.href = '/?lng=' + currentLang