refactor: webpack alias imports

This commit is contained in:
David Ralph
2021-08-28 15:34:12 +01:00
parent 4db47d9fec
commit 06038a201e
42 changed files with 71 additions and 64 deletions

View File

@@ -1,3 +1,4 @@
// tl;dr this function merges the translation file with the english file in order to add untranslated strings
const fs = require('fs');
const merge = require('@eartharoid/deep-merge');
@@ -8,5 +9,6 @@ fs.readdirSync('../src/translations').forEach((file) => {
const newdata = merge(require('../src/translations/en_GB.json'), require('../src/translations/' + file));
fs.writeFileSync('../src/translations/' + file, JSON.stringify(newdata, null, 2));
// add new line
fs.appendFileSync('../src/translations/' + file, '\n');
});