Skip to content

4u/crowdin-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
});

About

Node.js crowdin client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published