Comparing version 4.1.5 to 4.1.6
@@ -33,4 +33,6 @@ const convert = require('xml-js'); | ||
'source-language': obj.sourceLanguage, | ||
'target-language': obj.targetLanguage | ||
}; | ||
if (obj.targetLanguage != null) { | ||
fileAttributes['target-language'] = obj.targetLanguage; | ||
} | ||
const f = makeElement('file', fileAttributes, [b]); | ||
@@ -42,3 +44,5 @@ root.elements.push(f); | ||
u.elements.push(makeElement('source', null, makeValue(obj.resources[nsName][k].source, ElementTypes12))); | ||
u.elements.push(makeElement('target', null, makeValue(obj.resources[nsName][k].target, ElementTypes12))); | ||
if (obj.resources[nsName][k].target != null) { | ||
u.elements.push(makeElement('target', null, makeValue(obj.resources[nsName][k].target, ElementTypes12))); | ||
} | ||
if ('note' in obj.resources[nsName][k]) { | ||
@@ -45,0 +49,0 @@ u.elements.push(makeElement('note', null, [makeText(obj.resources[nsName][k].note)])); |
{ | ||
"name": "xliff", | ||
"version": "4.1.5", | ||
"version": "4.1.6", | ||
"description": "xliff2js and js2xliff converter xliff utils", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91944
1428