From e609f15a93e454f36ea22b91ba5fcd3bf8a7d814 Mon Sep 17 00:00:00 2001 From: LB Johnston Date: Sun, 6 Nov 2022 21:20:54 +1000 Subject: [PATCH] Ignore test files from extract-translatable-strings Avoid unit test translation usage from being added to translation strings --- client/extract-translatable-strings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/extract-translatable-strings.js b/client/extract-translatable-strings.js index b889e9a499..85bc01b101 100644 --- a/client/extract-translatable-strings.js +++ b/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');