Translating tags in an existing language

3. Making changes to an existing or new dictionary (~20 hours from scratch, a few minutes for individual word changes)

 

  1. Navigate to the LiteFarm repo at https://github.com/LiteFarmOrg/LiteFarm

  2. Make a new branch from the develop branch (see image) naming it whatever is easy to remember, in this case I’ve chosen “my-translation-branch”

3. Type the following URL into your browser, substituting the name of your branch where it says “my-translation-branch”:

https://github.com/LiteFarmOrg/LiteFarm/tree/my-translation-branch/packages/webapp/public/locales

You should see something like the following:

4. Click into the folder that corresponds to the language you’re translating, for example, “pt” for “Portuguese”. You should now see something like this:

5. Click into whichever file you’d like to work on. For our example, I’ll select the first - “common.json”

6. Click the “pencil” icon at the top right. You should now see something like this:

7. Translate all, or as many terms as you have time for, in the second column (notice ‘desculpa’ in the last row as an example). If you have any questions or need more context, feel free to reach out to our team at

support@litefarm.org. When you’re done, scroll down to the bottom of the screen where it says “Commit changes”

8. Write a brief note that will help you remember what you did and then click “Commit changes”. For short files such as common.json you’ll probably only need to do one commit per document. For larger documents, such as crops.json it may take several commits to finish. Once done, go to the link in #5 and proceed to the next file.

9. Once you’ve finished with all your desired changes, make a pull request describing your updates. The LiteFarm team will review your PR and either merge it in or come back to you with any questions or suggestions.