0.1.5 • Published 4 years ago

crowdin-client v0.1.5

Weekly downloads
1,662
License
WTFPL
Repository
github
Last release
4 years ago

Crowdin Client

npm version Build Status

Subset of Crowdin HTTP API.

Upload branched translations

import Crowdin from 'crowdin-client';

const crowdin = new Crowdin({
  accountKey: 'YOUR_KEY',
  login: 'YOUR_USERNAME',
  project: 'YOUR_PROJECT',
});

const promise = crowdin.createOrUpdateVersionedFile(
  'master',
  'my_project.pot',
  '/path/to/my_project.pot',
  'template/for/generated/po/%two_letters_code%.po',
);

Download branched translations

import Crowdin from 'crowdin-client';

const crowdin = new Crowdin({
  accountKey: 'YOUR_KEY',
  login: 'YOUR_USERNAME',
  project: 'YOUR_PROJECT',
});

crowdin.downloadTranslations('all', 'master').then(buffer => {
  // there is your buffer with zipped translations
});
0.1.4

4 years ago

0.1.5

4 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago