@mollie/crowdin-cli
Package that helps syncing translations with Crowdin
Last updated 4 months ago by cosmatrix .
MIT · Original npm · Tarball · package.json
$ cnpm install @mollie/crowdin-cli 
SYNC missed versions from official npm registry.

@mollie/crowdin-cli

This CLI is used for syncing application translations with Crowdin. It uses formatjs-cli to extract the messages from the application.

Usage

Add the following variables to your .env file:

CROWDIN_KEY
CROWDIN_PROJECT_NAME
CROWDIN_LANGUAGES
# i.e.
# CROWDIN_LANGUAGES=nl,en-US,fr,fr-BE

Add the following scripts to package.json:

"crowdin:download": "mollie-crowdin download",
"crowdin:upload": "mollie-crowdin upload '<glob directory pattern>'", // i.e. mollie-crowdin upload './src/**/!(*.test).{ts,tsx}'

Typescript

It is possible to write the downloaded files to Typescript (.ts). to Achieve that, pass the --typescript flag to the download command.

"crowdin:download": "mollie-crowdin download --typescript",

Current Tags

  • 1.1.0                                ...           latest (4 months ago)

3 Versions

  • 1.1.0                                ...           4 months ago
  • 1.0.1                                ...           4 months ago
  • 1.0.0                                ...           5 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (10)
Dev Dependencies (17)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |