feat: skip node_modules folder when generating i18n (#3862)

This commit is contained in:
DacongDA
2025-06-05 20:51:14 +08:00
committed by GitHub
parent 09f98fd24a
commit 8a098a4b6e

View File

@ -84,6 +84,10 @@ func getAllFilePathsInFolder(folder string, fileSuffix string) []string {
return err
}
if strings.HasSuffix(path, "node_modules") {
return filepath.SkipDir
}
if !strings.HasSuffix(info.Name(), fileSuffix) {
return nil
}