mirror of
https://github.com/mue/mue.git
synced 2026-06-05 23:45:53 +02:00
refactor: webpack alias imports
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user