Translating Terrastories

Terrastories aims to be accessible to a wide range of communities in their native languages, and to facilitate the process of translating the app as needed.

Translation using Github

Currently, translations for Terrastories are handled through Github. In the future, we aim to use CrowdIn to make it easy for anyone to contribute translations to Terrastories for new or existing languages.

To begin translating, clone the Github Terrastories repository, and follow these steps.

  1. Find the two or three-digit ISO language code for your language contribution here

  2. Navigate to the /rails/config/locales folder.

  3. Copy the en folder (or any other language folder you want to use as your basis for translation) and rename it to your ISO language code. Also rename the en in each filename, and the beginning of each file, to your ISO language code.

  4. Translate each string to your language of contribution.

  5. Add your language to the languages list for all of the languages (in en.yml, pt.yml, mat.yml, ... and your new language contribution). You can use Google Translate to figure out how your language is translated in the other languages.

  6. Submit your PR 🎉

Last updated