mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 16:02:14 +00:00
Change missingStrings to that it posts to slack
This commit is contained in:
parent
c1f0fae456
commit
d0e4590a01
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue