mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Add task to check for missing files
This commit is contained in:
@@ -15,6 +15,21 @@ const SLACK_CHANNEL = '#' + nconf.get('TRANSIFEX_SLACK:channel');
|
|||||||
const SLACK_USERNAME = 'Transifex';
|
const SLACK_USERNAME = 'Transifex';
|
||||||
const SLACK_EMOJI = ':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', () => {
|
gulp.task('transifex:missingStrings', () => {
|
||||||
|
|
||||||
let missingStrings = [];
|
let missingStrings = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user