Skip to content

Commit

Permalink
Update: the default configuration file path is added
Browse files Browse the repository at this point in the history
Signed-off-by: chouchongYHMing <yuhaoming_ai@njfu.edu.cn>
  • Loading branch information
chouchongYHMing committed Sep 27, 2024
1 parent 3f5136f commit a224c73
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/packages/i18n-tool/i18n.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
i18nMethod: 't',
// [i18n translate provider]
translate: {
type: 'baidu',
type: '',
appid: '',
model: '',
key: '',
Expand Down
2 changes: 1 addition & 1 deletion ui/packages/i18n-tool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"prettier": "^3.3.2"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "vitest"
},
"author": "",
"license": "ISC",
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/i18n-tool/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ program
// If not specified, will look for the config in the same directory as i18n-tool
.option(
'-c, --config <path>',
'specify the configuration file path, default is ./i18n.config.js'
'specify the configuration file path, default is ./i18n.config.cjs',
'./i18n.config.cjs'
)

program
Expand Down

0 comments on commit a224c73

Please sign in to comment.