Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
converter.addTextDomain(lng, source, {}, function(err, data) {
// console.log(data);
if (err) {
callback(err);
return;
}
converter.parseJSON(lng, data, {}, function(err, json) {
if (err) {
callback(err);
} else {
self.functions.log('loaded file: ' + source);
callback(null, json);
}
});
});
},