Skip to content

Commit 3b1e879

Browse files
committed
Fix translation.
1 parent aa3c1d2 commit 3b1e879

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

bin/totaljs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ function main() {
586586

587587
fs.writeFileSync('translate.resource', '// Total.js translation file\n// Created: ' + new Date().format('yyyy-MM-dd HH:mm') + '\n' + builder.join('\n'));
588588
console.log('Total.js: the translation was created (' + count + ' texts)');
589-
});
589+
}, (path, dir) => dir ? path.indexOf('/node_modules/') === -1 && path.indexOf('/tmp/') === -1 : true);
590590
return;
591591
}
592592

@@ -633,7 +633,7 @@ function main() {
633633

634634
fs.writeFileSync('translate.csv', output.join('\n'));
635635
console.log('Total.js: the translation was created (' + count + ' texts)');
636-
});
636+
}, (path, dir) => dir ? path.indexOf('/node_modules/') === -1 && path.indexOf('/tmp/') === -1 : true);
637637
return;
638638
}
639639

@@ -643,9 +643,8 @@ function main() {
643643
var can = true;
644644
for (var i = 0; i < files.length; i++) {
645645
var name = files[i];
646-
if (name[0] === '.')
647-
continue;
648-
can = false;
646+
if (name[0] !== '.')
647+
can = false;
649648
}
650649

651650
if (!can) {

0 commit comments

Comments
 (0)