Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Automate syncing translation files (#1037)
Browse files Browse the repository at this point in the history
* script to sync translation files to English version

* reorder the English translation file
  • Loading branch information
mqchau authored and jkleinsc committed Mar 31, 2017
1 parent 2ea2fe2 commit 7453611
Show file tree
Hide file tree
Showing 4 changed files with 1,182 additions and 1,182 deletions.
22 changes: 22 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,25 @@ Travis CI is configured to run tests on GitHub, so when you open a pull requests
To run the test suite locally, use `ember test` from the project root.

New test should be added for any new features or views in the app. For more info about how to setup a new test, see the [Fixtures for Acceptance Tests](https://github.com/HospitalRun/hospitalrun-frontend#fixtures-for-acceptance-tests) section of the README.

## Guidelines to edit translations
If you know a language other than English and would like to help translate this app, please follow the following steps:

### Install necessary node modules
```npm install -g babel-cli eslint-cli```

### Run script to populate missing translation terms
```npm run translation-sync```

After this step, you may see some file changes due to mismatches in translations of different languages. This script will take the English translation as the standard and populate the missing translations in other languages with empty string.

### Edit the translation file of your language
The translation files are in app/locales/<language>/translations.json

Open the translation file of your language then search for the string ```''```. Afterwards you fill in the quotation with the translated terms and save the file.

### Submit the pull request
Follow GitHub's guide to submit a pull request to the project. If you have trouble with this please post in Issues or contact a developer.



Loading

0 comments on commit 7453611

Please sign in to comment.