Explorar el Código

Ignore test files from extract-translatable-strings

Avoid unit test translation usage from being added to translation strings
LB Johnston hace 2 años
padre
commit
e609f15a93
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      client/extract-translatable-strings.js

+ 1 - 1
client/extract-translatable-strings.js

@@ -24,7 +24,7 @@ extractor
       },
     }),
   ])
-  .parseFilesGlob('./src/**/*.@(ts|js|tsx)');
+  .parseFilesGlob('./src/**/!(*.test).@(ts|js|tsx)');
 
 extractor.savePotFile('../wagtail/admin/locale/en/LC_MESSAGES/djangojs.po');