@devhouse/poeditor-sync

1.0.5 • Public • Published

@Devhouse/poeditor-sync

NPM  

Install

For yarn

yarn add @devhouse/poeditor-sync

Or npm

npm install @devhouse/poeditor-sync --save-dev

Usage

  1. upload

    poeditor-sync:upload --help
    

    usage:

    poeditor-sync:download keys=[param]
    

    keys:

    --settings='./settings.json' 		 Absolute or relative path to the settings file. By default './settings'
    --projects=references,common 		 The project keys. By default all from config
    --overwrite 			 0 | 1   Set it to 1 if you want to overwrite translations. By default 0
    --sync-terms 			 0 | 1   Set it to 1 if you want to sync your terms (terms that are not found in the uploaded file will be deleted from project and the new ones added). Ignored if updating = translations. By default 0
    
  2. Download

    poeditor-sync:dowload --help
    

    usage:

    poeditor-sync:download keys=[param]
    

    keys:

    --settings='./settings.json' 		 absolute or relative path to the settings file. By default './settings'
    --projects=references,common 		 the project keys. By default all from config
    

Config example

{
  "api_token": "your_poeditor-api-key",
  "dirName": "./",
  "projects": [
    {
      "id": 123123,
      "key": "common",
      "name": "The common translations",
      "langCodes": [
        "no", "sv", "en"
      ],
      "path": "i18n"
    }
  ]
}

Package Sidebar

Install

npm i @devhouse/poeditor-sync

Weekly Downloads

114

Version

1.0.5

License

MIT

Unpacked Size

8.45 kB

Total Files

5

Last publish

Collaborators

  • devhousellc
  • vova.lunev