fixed translation extractor

This commit is contained in:
SPRINX0\prochazka
2025-03-07 17:33:07 +01:00
parent 35855297eb
commit 2e8205f458
2 changed files with 16 additions and 0 deletions

View File

@@ -30,6 +30,10 @@ async function getFiles(dir, extensions) {
if (stats.isDirectory()) {
return getFiles(filePath, extensions);
} else if (stats.isFile() && hasValidExtension(file, extensions)) {
const slashPath = filePath.replace(/\\/g, '/');
if (slashPath.includes('/node_modules/') || slashPath.includes('/build/')) {
return null;
}
return filePath;
}
return null;