Skip to content

hugofvs/node-unbabel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unbabel API for Node

This Node.js module provides access to the Unbabel API for ordering translations.

Installation

Install via npm

npm install unbabel --save

Initialize Unbabel with your username and API key. If querying the Unbabel sandbox, set sandbox to true.

var unbabel = require('unbabel')(username, apiKey, sandbox);

Endpoints

  • All callbacks are passed an error and response: callback(err, res).
  • Supports camelCase and underscore naming conventions for option fields.
  • Please refer to Unbabel's API Docs for endpoint details.

unbabel.translation

unbabel.translation.get(uid, callback);

unbabel.translation.getAll(status, callback);

unbabel.translation.request({text: text_to_translate, target_language: target_language, callback_url: callback_url}, callback);

unbabel.translation.bulkRequest([{text: text_to_translate, target_language: target_language}], callback);

unbabel

unbabel.languagePair(callback);

unbabel.tone(callback);

unbabel.topic(callback);

Contribute

Forks and pull requests welcome!

TODO

  • Add tests

Author

Roger Graham. Email me if you have any questions: [email protected]. Supported by Localize.js.

About

Unbabel API for Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%