readthedocs / readthedocs.org

The source code that powers readthedocs.org
https://readthedocs.org/
MIT License
8.04k stars 3.59k forks source link

Automate locale selection for documentation pages #7471

Open AustinShalit opened 4 years ago

AustinShalit commented 4 years ago

Hi folks,

@agjohnson mentioned in #4600 that RTD was looking into redirecting users to a translation that matches their browser's language.

User requested /, redirect to /<default language>/<version> if no accept language header, or /<accept language header code>/<version> if there is a header. This change is relatively easy and we have an issue already tracking this internally.

I was just looking to see what happened with that suggestion.

Thank you, Austin

agjohnson commented 4 years ago

I'd still like to see this happen, and we're probably more equipped for this now that we have an application in front of all requests that serve documentation. I'm not sure what priority we have on this though, we'd probably want to get up to date figures on how many projects have active translations.

humitos commented 2 years ago

I renamed the issue to something similar to https://github.com/readthedocs/readthedocs.org/issues/8709 which is related, but for dashboard instead of documentation pages.