Gulp-PO
Gulp extension for synchronizing translates from POEditor.
Installation
npm install gulp-po
Usage
Allowed actions:
push
: Pushes all terms and translates to the POEditor serverpull
: Pulls all translates from the POEditor server and replace changed ones in filessync
: Pushes all terms to the POEditor server
You can provide translate files in following formats: JSON
, YAML
, NEON
var poConnector = ; { return ;} gulp;
Options
Required parameters:
apiToken
: Token generated on POEditor websiteproject
: Name of the project
Optional parameters:
langs
: Object of language mapping. You can mapkey
toval
, wherekey
is original POEditor code, e.g.zh-TW
tozh
Example:
var options = apiToken: '19xf1dfbfy36b96f0ba9f7zd94a83d9e' project: 'ExampleProject' langs: 'zh-TW': 'zh' ;