reactjs / reactjs/react.dev

Bad UX when swithcing languages

オープン
#4,667 コメント 4 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
JavaScript
スター
11.8k
フォーク
7.9k
平均マージ
1日 11時間
マージ済み PR(30日)
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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、ドキュメントサイトのロケール切り替え機能と、翻訳された URL の処理方法を追跡します。Error Boundaries のようなページを開き、フランス語から英語に切り替えて、ホームに戻るのではなく対応する英語のページが維持されるかを確認し、ワークフローを再現します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, react
領域
documentation, internationalization, localization, web-dev
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。