mirror of
https://github.com/mue/mue.git
synced 2026-06-12 03:28:46 +02:00
- Make author div not load if quote is empty - photoinformation taking too much of the screen - more transitions and consistent transitions - running prettier across all files Co-authored-by: David Ralph <me@davidcralph.co.uk>
18 lines
578 B
JavaScript
18 lines
578 B
JavaScript
// 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');
|
|
|
|
fs.readdirSync('../src/translations').forEach((file) => {
|
|
if (file === 'en_GB.json') {
|
|
return;
|
|
}
|
|
|
|
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');
|
|
});
|