Bad UX when swithcing languages
未关闭
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 11.8k
- 派生
- 7.9k
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 11
描述
Hi, I just wanted to share with you the problematic workflow I encounter:
- I access React docs, eg to read about ErrorBoundaries
- I get redirected to the French version automatically
- However, the translation of technical conept is actually more confusing than helpful when you are used to work in English. For instance "Périmètres d'erreur": it's nice to have an intelligible French translation of course, but "Perimètre" and "Boundary" have nothing in common and might be actually hard to find more documentations in English afterward. Another use case: I want to share this piece of docs to React beginner on Discord or elsewhere so I need the English version
- I switch to English via the locale switcher
- I get redirected to the home page :(
- I have trouble finding the page back since the URL is also translated
This workflow could be vastly improved by simply keeping the current page when we switch languages
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先跟踪文档网站的区域设置切换器,以及它如何处理翻译后的 URL。通过打开 Error Boundaries 之类的页面、从法语切换到英语,并检查是否会保留对应的英语页面而不是返回主页,来复现这一流程。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react
- 领域
- documentation, internationalization, localization, web-dev
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100