opendata-stuttgart / sensor.community

:sparkles: new shiny website built with svelte :heart: for dust and noise measuring project :point_right: https://sensor.community
https://sensor.community
MIT License
49 stars 42 forks source link

Automatic language detection #83

Open marcauberer opened 4 years ago

marcauberer commented 4 years ago

Would it be possible, to detect the browser language of the user and redirect directly to the matching sub-page? Should be possible with the HTTP_ACCEPT_LANGUAGE header.

ohheyitsdave commented 4 years ago

Hi @marcauberer, since we now have multiple languages it makes sense to have a detection. I will look into it

marcauberer commented 4 years ago

Any progress here?

ohheyitsdave commented 4 years ago

Hi @marcauberer, I've looked into it a few weeks ago. Seems like it's a bigger change, because our page is compiled through a static site generator and a simple navigator.browserLanguage doesn't work. But I have it still in my backlog, but for now the new sensor guide for noise has priority.