Convert any file to the XLIFF format, and then back to the original format with all the contents translated and perfectly preserved formatting. Already used by MateCat, the popular CAT tool. Test it right now on matecat.com.
To utilize unirest for node.js install the the npm module:
$ npm install unirest
After installing the npm package you can now start simplifying requests like so:
var unirest = require('unirest');
unirest.post("https://translated-matecat-filters-v1.p.rapidapi.com/AutomationService/xliff2original") .header("X-RapidAPI-Key", "undefined") .header("Content-Type", "application/x-www-form-urlencoded") .end(function (result) { console.log(result.status, result.headers, result.body); });