/reactjs.org-translation

Nexus of resources and tools for translating the React docs.

Primary LanguageJavaScriptMIT LicenseMIT

Translating reactjs.org

This repo contains resources and scripts to enable translations of https://reactjs.org.

Starting a New Translation

To start a new translation project, submit a PR adding a new file {lang-code}.json to the langs folder with the following information:

For example:

{
  "name": "English",
  "code": "en",
  "maintainers": ["gaearon", "tesseralis"]
}

In the PR comment, please describe your experiences with translation (e.g. links to previous work).

Once the PR is accepted, the bot will:

  • Create a new repository for you at reactjs/{lang-code}.reactjs.org
  • Add/invite all maintainers listed to a "reactjs.org {language} Translation" team in the reactjs organization
  • Create an issue from this template in the new repository to track your translation progress

After that, you may want to pin the generated issue to make it easier to find.

Happy translating!

Translating Tips

Be Prompt

As with maintaining any repository, be prompt with reviewing pull requests / responding to volunteers.

Make a glossary and style guide

Create a glossary of the translations of technical and React-specific terms. Put this in a highly visible location (the README or a pinned issue). For examples of glossaries, see:

Use the bot!

Remember to review the issues generated by reactjs-translation-bot. The bot will create issues and PRs for recent changes to the master repository. It's important to review these to make sure our translations stay up to date with the current documentation.

Ask for help

If you have a question that isn't addressed here, go to the global ReactJS localization team and ask your fellow translators for help!

Before publishing

  1. Review your translations and make sure that the pages listed in "minimum viable translation" are fully translated. Run the site yourself locally to make sure there are no bugs or snags.
  2. ask {TBD} to add {lang-code}.reactjs.org as a subdomain
  3. submit a PR to reactjs/reactjs.org adding the language in the dropdown
  4. celebrate!

Acknowledgements

This repo, and the bot that makes all this possible, is based off of and iterated upon che-tsumi by the Vue.js Japan User Group.