mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-23 22:27:06 +00:00
Add task to check for missing files
This commit is contained in:
parent
092ba23ae4
commit
bfc5ac9435
1 changed files with 15 additions and 0 deletions
|
|
@ -15,6 +15,21 @@ const SLACK_CHANNEL = '#' + nconf.get('TRANSIFEX_SLACK:channel');
|
|||
const SLACK_USERNAME = 'Transifex';
|
||||
const SLACK_EMOJI = ':transifex:';
|
||||
|
||||
gulp.task('transifex:missingFiles', () => {
|
||||
let missingStrings = [];
|
||||
let languages = getArrayOfLanguages();
|
||||
eachTranslationFile(languages, (error) => {
|
||||
if(error) {
|
||||
missingStrings.push(error.path);
|
||||
}
|
||||
});
|
||||
|
||||
if (!_.isEmpty(missingStrings)) {
|
||||
let message = 'the following files were missing from the translations folder';
|
||||
post(message, missingStrings);
|
||||
}
|
||||
});
|
||||
|
||||
gulp.task('transifex:missingStrings', () => {
|
||||
|
||||
let missingStrings = [];
|
||||
|
|
|
|||
Loading…
Reference in a new issue