Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could we provide the user the right language more automatically? #82

Open
JulienPalard opened this issue Dec 11, 2019 · 4 comments
Open

Comments

@JulienPalard
Copy link
Member

I mean, when a french browser hits docs.python.org/ it could be redirected to docs.python.org/fr/ in a clean way.

I'm sure some people prefer reading the english version anway, so we need to find a smart way of doing it, a way such that nobody can complain about it.

@JulienPalard
Copy link
Member Author

cc @christopheNan

@StanFromIreland
Copy link
Contributor

StanFromIreland commented Jan 24, 2025

We could use the language the browser is in. See developer.mozilla.org

It would be quite easy to implement.

@m-aciek
Copy link
Contributor

m-aciek commented Jan 24, 2025

On the backend side the server could make use of Accept-Language header. Though we probably should only redirect on first "encounter" and display a note at the top, like "We've redirected you to your browser preferred language." or similar. Then, if user switches back to English, we should not redirect anymore (probably a boolean cookie would be enough). Otherwise the redirections could be frustrating for users.

@m-aciek
Copy link
Contributor

m-aciek commented Jan 24, 2025

It's worth noting that MDN is experimenting with “Remember language” feature. It should help with user preference for redirection behaviour.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants