reactjs / reactjs/react.dev

"This Page Is Not Yet Translated"

Open
#1,703 2 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

localization
Dominant language
JavaScript
Stars
11.8k
Forks
7.9k
Avg merge
1d 11h
Merged PRs (30d)
11

Description

Courtesy of @smikitky

It would be cool to have a "This Page Is Not Yet Translated" component that we can stick on pages in the translation forks that haven't had a translation yet. Even though the Spanish translation is "done", some sections like the blog aren't translated, and it would be nice to give a warning like MDN does:
MDN article with a warning in Portuguese

This would involve something like:

  • A TranslationWarning component with a message on how a page isn't translated yet.
  • A translated property on front matter that should be set when a page is translated
  • Logic to show the translation warning if translated isn't set (and the language isn't English).

This would require a code mod for all the pages that have been already translated in the various languages, but I could probably do that with a codemod by referencing their progress list.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the proposed TranslationWarning component, the translated front-matter property, and the language-based display logic described in the issue. Review the existing translated pages and language progress lists before planning the codemod; done means untranslated non-English pages show the warning while translated pages and English pages do not.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
documentation, frontend, internationalization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.