Comparing version 1.0.5 to 1.0.6
@@ -61,3 +61,3 @@ (function() { | ||
lang = data[i]; | ||
gutil.log("[" + lang.lang + "] Modified strings: " + lang.modified); | ||
gutil.log("[" + lang.lang + "] Added terms: " + lang.added + ", Modified strings: " + lang.modified); | ||
ref = lang.mergedFiles; | ||
@@ -64,0 +64,0 @@ for (j = 0, len1 = ref.length; j < len1; j++) { |
@@ -75,3 +75,4 @@ (function() { | ||
POEditorDownloader.prototype.merge = function(lang, terms, callback) { | ||
var content, data, dump, e, ext, file, fileObj, i, j, len, len1, mapLang, mergedFile, mergedFiles, modifiedStrings, pathFragment, ref, ref1, term, termDir; | ||
var addedTerms, content, data, dump, e, ext, file, fileObj, i, j, len, len1, mapLang, mergedFile, mergedFiles, modifiedStrings, pathFragment, ref, ref1, term, termDir; | ||
addedTerms = 0; | ||
modifiedStrings = 0; | ||
@@ -120,2 +121,5 @@ mergedFiles = []; | ||
} | ||
} else { | ||
_.set(file, term.key, term.value); | ||
addedTerms++; | ||
} | ||
@@ -136,2 +140,3 @@ } | ||
lang: lang, | ||
added: addedTerms, | ||
modified: modifiedStrings, | ||
@@ -138,0 +143,0 @@ mergedFiles: mergedFiles |
{ | ||
"name": "gulp-po", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Gulp extension for synchronizing translates from POEditor.", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
22737
629