Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

Translations

Samuel Mehrbrodt edited this page Jun 26, 2015 · 3 revisions

Translations are done at translate.digital-deacon.org.

Setting up

To update the words in OneSky, first make sure you have your OneSky API credentials in your environment. E.g. add these lines to your .bashrc:

export ONESKY_API_PUBLIC_KEY="$YOUR_PUBLIC_KEY"
export ONESKY_API_PRIVATE_KEY="$YOUR_PRIVATE_KEY"

Uploading Words

Then run gulp updateWords. This will extract all strings that have been annotated and add them to the template.pot file. That file will then be uploaded to OneSky using their API.

Downloading Translations

To download the translated strings, run gulp updateTranslations. This will fetch the languages defined in the Gruntfile (section downloadTranslations), update the po files and generate the Javascript file which will be included in the App.

Clone this wiki locally