reactjs / react.dev

The React documentation website
https://react.dev/
Creative Commons Attribution 4.0 International
11.06k stars 7.55k forks source link

Bad UX when swithcing languages #4667

Open eric-burel opened 2 years ago

eric-burel commented 2 years ago

Hi, I just wanted to share with you the problematic workflow I encounter:

This workflow could be vastly improved by simply keeping the current page when we switch languages

harish-sethuraman commented 2 years ago

You can switch to react english site very easily. All you have to do is replace https://fr.reactjs.org/ with https://reactjs.org/ in the URL.

Also if you think the French translation is confusing feel free to raise a issue and PR here https://github.com/reactjs/fr.reactjs.org/

I have trouble finding the page back since the URL is also translated

This shouldn't happen? The URLs are not translated generally. Can you share a translated URL so that we can have a look into that?

eric-burel commented 2 years ago

Yeah sorry I didn't describe the workflow quite right:

sarimarton commented 2 years ago

I strongly second the OP. The localization in this form is a massive setback in using the website. The Hungarian translation is most probably not even remotely interested to the vast majority of Hungarian developers, and the way the sentence structures are mirrored into Hungarian makes it painful to read. The language chooser should keep me on the same page, and the preferred language should be persisted in a cookie.

harish-sethuraman commented 2 years ago

The Hungarian translation is most probably not even remotely interested to the vast majority of Hungarian developers, and the way the sentence structures are mirrored into Hungarian makes it painful to read.

You can add suggestions regarding Hungarian translation here https://github.com/reactjs/hu.reactjs.org/

The language chooser should keep me on the same page, and the preferred language should be persisted in a cookie.

@gaearon thoughts?