1.1.9 • Published 21 days ago

powo-cli v1.1.9

Weekly downloads
-
License
MIT
Repository
github
Last release
21 days ago

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

OptionDescriptionis Mandatory
projectPowo Project's nametrue
countryCountry code (default: XX)false
platformproject's platform (Android, iOS, web, robot)true
versionlast or drafttrue
languageslanguages to generatetrue
locationDestination folder locationtrue
proxyOptional proxy. Format : --proxy=http://proxy.fr:8080false

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

OptionDescriptionis Mandatory
projectPowo Project's nametrue
countryCountry code (default: XX)false
platformproject's platform (Android, iOS, web, robot)true
versionlast or drafttrue
locationDestination folder locationtrue
proxyOptional proxy. Format : --proxy=http://proxy.fr:8080false
1.1.9

21 days ago

1.1.8

3 months ago

1.1.7

3 months ago

1.1.6

3 months ago

1.1.5

5 months ago

1.1.4

7 months ago

1.1.3

3 years ago

1.1.1

3 years ago

1.0.2

3 years ago

1.1.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.1.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago