Change missingStrings to that it posts to slack

This commit is contained in:
Blade Barringer
2015-08-09 16:42:44 -05:00
parent c1f0fae456
commit d0e4590a01

View File

@@ -37,15 +37,14 @@ gulp.task('transifex:missingStrings', () => {
eachTranslationString(ALL_LANGUAGES, (language, filename, key, englishString, translationString) => {
if (!translationString) {
let errorString = `${language} - ${filename} - ${key} - ${englishString}`;
let errorString = `${language} - ${filename} - ${key} - \`${englishString}\``;
missingStrings.push(errorString);
}
});
if (!_.isEmpty(missingStrings)) {
let message = 'The following strings are not translated';
let formattedMessage = formatMessageForPosting(message, missingStrings);
console.log(formattedMessage);
post(message, missingStrings);
}
});