mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +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) => {
|
eachTranslationString(ALL_LANGUAGES, (language, filename, key, englishString, translationString) => {
|
||||||
if (!translationString) {
|
if (!translationString) {
|
||||||
let errorString = `${language} - ${filename} - ${key} - ${englishString}`;
|
let errorString = `${language} - ${filename} - ${key} - \`${englishString}\``;
|
||||||
missingStrings.push(errorString);
|
missingStrings.push(errorString);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!_.isEmpty(missingStrings)) {
|
if (!_.isEmpty(missingStrings)) {
|
||||||
let message = 'The following strings are not translated';
|
let message = 'The following strings are not translated';
|
||||||
let formattedMessage = formatMessageForPosting(message, missingStrings);
|
post(message, missingStrings);
|
||||||
console.log(formattedMessage);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user