@terenyeung/poeditor.cli

1.0.0 • Public • Published

POEditor cli is the Standard Tooling for workflow of POEditor.

language npm package NPM downloads license

Features

  • Upload pre-translated file(s) to POEditor
  • Download translated files(s) to local directory

📦 Install

If you haven't installed Node.js, please install it first, here.

$ npm install poeditor.cli -g

🔨 Configuration

Create a poeditor-config.json in the root directory, and config information as follows:

{
  "apiToken": "",                     // POEditor api token
  "projectId": 270149,                // project id
  "fileType": "android_strings",      // fileType to upload or download, supports files format (po, pot, mo, xls, csv, resw, resx, android_strings, apple_strings, xliff, properties, key_value_json, json, xmb, xtb)
  "targetDir": "./i18n"               // directory where translated files live
}

🤜🏼 Usage

Pull all translated files from upstream of POEditor.

$ poeditor pull

Push all pre-translated files from downloadstream of targetDir in poeditor-config.json.

$ poeditor push

/@terenyeung/poeditor.cli/

    Package Sidebar

    Install

    npm i @terenyeung/poeditor.cli

    Weekly Downloads

    0

    Version

    1.0.0

    License

    Anti 996

    Unpacked Size

    27.9 kB

    Total Files

    17

    Last publish

    Collaborators

    • terenyeung