Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@kununu/phraseapp-cli

phraseapp-cli for https://phraseapp.com/

readme

phraseapp-cli

phraseapp-cli for https://phraseapp.com/

Installation

Add @kununu/phraseapp-cli to your project

npm install @kununu/phraseapp-cli --save

Add update-translations to your project

Add to package.json

"update-translations": "node ./node_modules/@kununu/phraseapp-cli/index.js",

Add env vars

Make sure PHRASEAPP_PROJECT_ID and PHRASEAPP_ACCESS_TOKEN are properly configured.

Configuration file

You have to add the .phraseapp.json file

For example:

{
  "project_id": "YOUR_PROJECT_ID",
  "path": "YOUR_TRANSLATIONS_PATH",
  "locales": [
    {
      "locale_id": "de_DE",
      "tags": [
        "TAG1",
        "TAG2",
        "TAG3"
      ]
    },
    {
      "locale_id": "de_AT",
      "tags": [
        (...)
      ],
      "fallback_locale_id": "de_DE"
    },
    (...)
  ]
}

License

Apache-2.0 © kununu