mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 13:47:33 +01:00
Change missingStrings to that it posts to slack
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user