Skip to content

Localization

Lorenz Hoffmann edited this page Apr 18, 2023 · 7 revisions

Adding translations

If you want to add translations to a language you know well, you should do the following:

  1. Look at the issues and pull requests if someone already works on translations for the language. Also take a look at the README, there is a list of languages which already have translations.
  2. Fork this repo
  3. Make sure you set your browser to the language for which you want to add translations.
  4. Get the two-letter code for your language, for example, from Wikipedia.
  5. Copy one of the json files in src/locales and rename it to your two-letter code. You can also add a flag to the README.
  6. Translate all values in the json file. You can run the page from the console with npm run start.
  7. Make sure you have no warnings or errors on localization in your console or on the page.
  8. Finally, you can create a pull request! 🎉
Clone this wiki locally