Hi i got a bit of the problem trying to implement language switcher/preference
I made a localstorage item for that, but got a problem becuse of reload need.
function lang_displayed_settings() {
if (localStorage.getItem("language") === "pl") {
window.location.hash = "#pl"
location.reload();
}
}
I tried to do a function on window load to get a item with preferenced language but i cant really make it to be reload automaticly. Or im getting a loop when window is just reloading on load. I need a function which works on hrefs etc.
Now i have no idea what i can change to get it works! Hope someone made it better than me ;d
(code from above is a clear one, before me useless trying)