djangoproject.com
djangoproject.com copied to clipboard
Support switching languages on non-docs sites
Right now, the docs site has a handy language switcher in the bottom right corner. For other sites, (I think) the only supported way of switching languages is to have your browser send an Accept-Language header. While this might work fine I think something that allows the user to pick a language (perhaps defaulting to whatever Accept-Language is) would be preferred
Google also recommends unique URLs for each language a page is served in (which is not currently supported, except for the docs site):
https://support.google.com/webmasters/answer/182192
(I guess we could do what they've done and add a query string to the URLs.)
What do others think? Should we steal the language switcher from the docs site and use it on other sites? Or add some new widget for this? Or just leave things the way they are?
@tobiasmcnulty I would steal the language switcher for simplicity and uniformity.
Sounds good to me. I haven't started on this and probably won't have time for awhile, so if anyone feels like picking it up feel free!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Similar to #377. @pauloxnet Perhaps there's a mini-project here if we gather a group of similar tickets? 🤔
I already replied in the #377 and added here labels.
@carltongibson @pauloxnet I'll pick this up as I've started #377 by addition translation tags to it.
I've started to pull the language selector from the docs in. Will carry this one while you guys are enjoying yourselves 😂