mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-16 02:05:04 +01:00
update lang scripts
This commit is contained in:
parent
c7275ef85b
commit
be886db0f2
@ -30,7 +30,7 @@
|
||||
"check-db": "node scripts/check-db.js",
|
||||
"check-env": "node scripts/check-env.js",
|
||||
"copy-db-files": "node scripts/copy-db-files.js",
|
||||
"extract-messages": "formatjs extract \"{pages,components}/**/*.js\" --out-file build/messages.json",
|
||||
"extract-messages": "formatjs extract \"src/{pages,components}/**/*.js\" --out-file build/messages.json",
|
||||
"merge-messages": "node scripts/merge-messages.js",
|
||||
"generate-lang": "npm-run-all extract-messages merge-messages",
|
||||
"format-lang": "node scripts/format-lang.js",
|
||||
|
@ -4,7 +4,7 @@ const path = require('path');
|
||||
const prettier = require('prettier');
|
||||
const messages = require('../build/messages.json');
|
||||
|
||||
const dest = path.resolve(__dirname, '../lang');
|
||||
const dest = path.resolve(__dirname, '../src/lang');
|
||||
const files = fs.readdirSync(dest);
|
||||
const keys = Object.keys(messages).sort();
|
||||
|
||||
@ -14,7 +14,7 @@ with the existing files under `lang`. Any newly added
|
||||
keys will be printed to the console.
|
||||
*/
|
||||
files.forEach(file => {
|
||||
const lang = require(`../lang/${file}`);
|
||||
const lang = require(`../src/lang/${file}`);
|
||||
|
||||
console.log(`Merging ${file}`);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user