powo-cli

1.1.9 • Public • Published

powo-cli

npm version

Node module to import Powo translation into your web project.

Installation

Using Yarn

yarn add powo-cli

Using Npm

npm install powo-cli

How to use

Only load global files

Add load-locales script into your package.json file

    "scripts": {
        "powo": "load-locales --project=MyPowoProject --country=XX --platform=web --version=last --languages=fr,en --location=src/locales/"
    }

This script will generate en.json and fr.json files with last approved translations into your src/locales/ development path

Options

Option Description is Mandatory
project Powo Project's name true
country Country code (default: XX) false
platform project's platform (Android, iOS, web, robot) true
version last or draft true
languages languages to generate true
location Destination folder location true
proxy Optional proxy. Format : --proxy=http://proxy.fr:8080 false

Load files by features

Add load-by-features script into your package.json file

    "scripts": {
        "powo": "load-by-features --project=MyPowoProject --country=XX --platform=web --version=last --location=src/locales/"
    }

This script will generate separate json files by features with last approved translations into your src/locales/ development path

Options

Option Description is Mandatory
project Powo Project's name true
country Country code (default: XX) false
platform project's platform (Android, iOS, web, robot) true
version last or draft true
location Destination folder location true
proxy Optional proxy. Format : --proxy=http://proxy.fr:8080 false

Dependents (0)

Package Sidebar

Install

npm i powo-cli

Weekly Downloads

58

Version

1.1.9

License

MIT

Unpacked Size

10.1 kB

Total Files

7

Last publish

Collaborators

  • stephanebouget