Skip to content

Commit

Permalink
Merge pull request #949 from Abby-Wheelis/Abby-Wheelis-test_translate…
Browse files Browse the repository at this point in the history
…_instructions

Translation Testing Instructions
  • Loading branch information
shankari authored Aug 14, 2023
2 parents fb82f1c + db726a7 commit 74786bf
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/dev/front/test_translations_in_devapp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# How to Specify Translation Source

When adding a language or testing translation updates, it can be useful to see changes in the devapp. Follow the steps bellow to point your devapp to a specific branch for translations.

In the GitHub CLI for your e-mission-phone repo, navigate into the locales folder:

`cd locales`

Clear the remote tracking, and set the appropriate upstream and origin repositories:

`git remote rm origin`

`git remote add upstream https://github.com/e-mission/e-mission-translate`

`git remote add origin https://github.com/[your_account]/e-mission-translate`

Check what has been set:

`git remote -v`

Checkout the branch you wish to test

`git checkout --track origin/[branch_to_test]`

Now, the translations you see in the emulator will be pulled from that branch, and your edits in locales can be pushed into your fork/branch of translations.

0 comments on commit 74786bf

Please sign in to comment.