wip: starts upgrading lodash to v3

This commit is contained in:
Matteo Pagliazzi
2015-11-11 10:32:49 +01:00
parent 8f9d2a5f9a
commit 3795b1d151
13 changed files with 35 additions and 27 deletions

View File

@@ -89,7 +89,7 @@ gulp.task('transifex:malformedStrings', () => {
}
});
});
});
}).value();
if (!_.isEmpty(stringsWithMalformedInterpolations)) {
let message = 'The following strings have malformed or missing interpolations';
@@ -128,7 +128,7 @@ function eachTranslationFile(languages, cb) {
cb(null, lang, filename, parsedEnglishFile, parsedTranslationFile)
});
});
}).value();
}
function eachTranslationString(languages, cb) {
@@ -162,7 +162,7 @@ function getStringsWith(json, interpolationRegex) {
var match = value.match(interpolationRegex);
if(match) strings[file_name][key] = match;
});
});
}).value();
return strings;
}