1.0.0 • Published 7 years ago
deepl-pro v1.0.0
Deepl Pro Translator Service
Deepl is the better translator service at this time. This service is designed for PRO accounts : https://www.deepl.com/pro-registration.html
Installation
npm install deepl-proUsage
Load Deepl with the auth_key and default options
const deepl = require("deepl-pro")("XXXXXXXXXXXXX")Load Deepl with your own options
const deepl = require("deepl-pro")({
auth_key: "XXXXXXXXXXXXX",
debug: false,
tag_handling: 'xml',
split_sentences: '0',
preserve_formatting: '1'
})Request a translation
deep.translate("Hello! <b>World</b>!", "en", "fr", function(_err, _results) {
console.log("TRANSLATE/", _err, _results)
})RESULTS/ null Bonjour ! <b>Monde</b> !1.0.0
7 years ago