Browse Source

Ignore test files from extract-translatable-strings

Avoid unit test translation usage from being added to translation strings
LB Johnston 2 years ago
parent
commit
e609f15a93
1 changed files with 1 additions and 1 deletions
  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');