mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 21:26:00 +00:00
refactor: add index.js to translations-cli, add translations:extract to package.json
This commit is contained in:
3
common/translations-cli/index.js
Normal file
3
common/translations-cli/index.js
Normal file
@@ -0,0 +1,3 @@
|
||||
const { program } = require('./program');
|
||||
|
||||
program.parse();
|
||||
@@ -19,7 +19,7 @@ const { extractAllTranslations } = require('./extract');
|
||||
const defaultConfig = {
|
||||
extensions: ['.js', '.ts', '.svelte'],
|
||||
directories: ['app', 'packages/web'],
|
||||
outputFile: './translations/en.json',
|
||||
outputFile: './translations/en-US.json',
|
||||
};
|
||||
|
||||
program.name('dbgate-translations-cli').description('CLI tool for managing translation').version('1.0.0');
|
||||
@@ -86,4 +86,4 @@ program
|
||||
}
|
||||
});
|
||||
|
||||
program.parse();
|
||||
module.exports = { program };
|
||||
|
||||
@@ -68,6 +68,7 @@
|
||||
"dbgate-serve": "node packages/dbgate/bin/dbgate-serve.js",
|
||||
"workflows": "node common/processWorkflows.js",
|
||||
"cy:open": "cd e2e-tests && yarn cy:open"
|
||||
"translations:extract": "node common/translations-cli/index.js extract"
|
||||
},
|
||||
"dependencies": {
|
||||
"concurrently": "^5.1.0",
|
||||
|
||||
Reference in New Issue
Block a user