summaryrefslogtreecommitdiffhomepage
path: root/gui/scripts
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2019-04-25 11:45:42 +0200
committerAndrej Mihajlov <and@mullvad.net>2019-04-25 11:46:25 +0200
commit0d65ab105570e1d2bfee9285cf78e43bc322e327 (patch)
treef50fe8882add272437f4d7a3ac49085a9c82dd48 /gui/scripts
parentaee0d7034c7f6419ad6770358506a0ebea618040 (diff)
downloadmullvadvpn-0d65ab105570e1d2bfee9285cf78e43bc322e327.tar.xz
mullvadvpn-0d65ab105570e1d2bfee9285cf78e43bc322e327.zip
Remove file references from the messages.pot output
Diffstat (limited to 'gui/scripts')
-rw-r--r--gui/scripts/extract-translations.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/scripts/extract-translations.js b/gui/scripts/extract-translations.js
index b9a895d37c..30e04e298a 100644
--- a/gui/scripts/extract-translations.js
+++ b/gui/scripts/extract-translations.js
@@ -44,5 +44,9 @@ extractor
cwd: path.resolve(__dirname, '..'),
});
+// clean file references
+extractor.getMessages().forEach((msg) => {
+ msg.references = [];
+});
extractor.savePotFile(outputPotFile);
extractor.printStats();