Skip to content

Commit 0151b02

Browse files
committed
Fix localization.
1 parent d083a1a commit 0151b02

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bin/totaljs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ function main() {
585585

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

@@ -631,7 +631,7 @@ function main() {
631631

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

@@ -671,4 +671,4 @@ function main() {
671671
});
672672
}
673673

674-
main();
674+
main();

0 commit comments

Comments
 (0)