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

Automate syncing translation files #1037

Merged
merged 2 commits into from
Mar 31, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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