Closed matt212 closed 5 years ago
Hi @adrai ,
I am able to create successfully XLIFF files using xliff/js2xliff and it worked as expected. now i wanted to convert same XLIFF to js using xliff/xliff2js . but i am getting below error
xliff/js2xliff
xliff/xliff2js
code `xliff2js('./1537854025565.xml', (err, res) => { if (err) { console.log(err) } console.log(res) })
` Please note the XLIFF generated is valid . Should i read XLIFF first to string and then pass it on xliff2js fuction ?
exactly, like in the readme 😜
Hi @adrai ,
I am able to create successfully XLIFF files using
xliff/js2xliff
and it worked as expected. now i wanted to convert same XLIFF to js usingxliff/xliff2js
. but i am getting below errorcode `xliff2js('./1537854025565.xml', (err, res) => { if (err) { console.log(err) } console.log(res) })
` Please note the XLIFF generated is valid . Should i read XLIFF first to string and then pass it on xliff2js fuction ?