letsencrypt/website

The website doesn't respect browser language or region

itsnotsaved opened this issue · 3 comments

This is a multi-lingual site but (1) the website doesn't respect browser language https://en.wikipedia.org/wiki/IETF_language_tag (2) or you don't redirect user to appropriate site based on visitor's IP

Hi, @itsnotsaved,

Thanks for pointing this out. I did some research and this looks like a way that the site's architecture (Hugo + Netlify) could handle this: https://nanmu.me/en/posts/2020/hugo-i18n-automatic-language-redirection/

It should be noted that when the visitor is on a page that have been translated in its language, the top of the page displays a link "View in [name of the language]".

Also, the solution linked in https://nanmu.me/en/posts/2020/hugo-i18n-automatic-language-redirection/ could have some drawbacks, like redirecting a user that wants to stay on the English homepage.

Also, the solution linked in https://nanmu.me/en/posts/2020/hugo-i18n-automatic-language-redirection/ could have some drawbacks, like redirecting a user that wants to stay on the English homepage.

It should be noted that when the visitor is on a page that have been translated in its language, the top of the page displays a link "View in [name of the language]".

I checked that. apparently, the 2nd feature already exist (however to view manually in docs page)

Suggestion:
You can set to load the appropriate locale site for the visitor directly. If someone wants to use english site, display it on the top (see screenshot) But if the site is loaded in english; i think you need to display "Language" word on that button (note: keep the drop-down list)
image