Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xliff

Package Overview
Dependencies
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xliff - npm Package Compare versions

Comparing version 4.1.5 to 4.1.6

8

jsToXliff12.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc