ivonederlof / xlf-translator

Read and translate xlf files
MIT License
6 stars 7 forks source link

bug : Missing element text #1

Open manudss opened 5 years ago

manudss commented 5 years ago

When i run the command translate i have this error :

`/usr/local/lib/node_modules/xlf-translator/node_modules/xmlbuilder/lib/XMLText.js:15 throw new Error("Missing element text"); ^

Error: Missing element text at new XMLText (/usr/local/lib/node_modules/xlf-translator/node_modules/xmlbuilder/lib/XMLText.js:15:15) at XMLElement.module.exports.XMLNode.text (/usr/local/lib/node_modules/xlf-translator/node_modules/xmlbuilder/lib/XMLNode.js:165:15) at XMLElement.module.exports.XMLNode.txt (/usr/local/lib/node_modules/xlf-translator/node_modules/xmlbuilder/lib/XMLNode.js:365:19) at /usr/local/lib/node_modules/xlf-translator/node_modules/xml2js/lib/builder.js:57:23 at /usr/local/lib/node_modules/xlf-translator/node_modules/xml2js/lib/builder.js:96:31 at /usr/local/lib/node_modules/xlf-translator/node_modules/xml2js/lib/builder.js:96:31 at /usr/local/lib/node_modules/xlf-translator/node_modules/xml2js/lib/builder.js:96:31 at /usr/local/lib/node_modules/xlf-translator/node_modules/xml2js/lib/builder.js:96:31 at Builder.exports.Builder.Builder.buildObject (/usr/local/lib/node_modules/xlf-translator/node_modules/xml2js/lib/builder.js:120:14) at async.waterfall (/usr/local/lib/node_modules/xlf-translator/lib/xlf-processor.js:66:45) at nextTask (/usr/local/lib/node_modules/xlf-translator/node_modules/async/dist/async.js:5324:14) at next (/usr/local/lib/node_modules/xlf-translator/node_modules/async/dist/async.js:5331:9) at /usr/local/lib/node_modules/xlf-translator/node_modules/async/dist/async.js:969:16 at xlfFileProcessor.createOutputFilesFromBody (/usr/local/lib/node_modules/xlf-translator/lib/xlf-processor.js:59:29) at fs.writeFile (/usr/local/lib/node_modules/xlf-translator/lib/xlf-file-processor.js:122:9) at FSReqWrap.oncomplete (fs.js:135:15)`

I work with xlf files. While their is this error ?