2
0
Эх сурвалжийг харах

Ignore test files from extract-translatable-strings

Avoid unit test translation usage from being added to translation strings
LB Johnston 2 жил өмнө
parent
commit
e609f15a93

+ 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');