fix(cli): init
命令的`VoerkaI18nScope is not defined
This commit is contained in:
parent
760c1cf0c5
commit
544a9f5528
@ -177,7 +177,7 @@ program
|
|||||||
.option('-a, --activeLanguage <name>', t('激活语言'), 'zh')
|
.option('-a, --activeLanguage <name>', t('激活语言'), 'zh')
|
||||||
.hook("preAction",async function(location){
|
.hook("preAction",async function(location){
|
||||||
const lang= process.env.LANGUAGE || "zh"
|
const lang= process.env.LANGUAGE || "zh"
|
||||||
await VoerkaI18nScope.change(lang)
|
await i18nScope.change(lang)
|
||||||
})
|
})
|
||||||
.action(async (location,options) => {
|
.action(async (location,options) => {
|
||||||
options.isTypeScript = options.typescript==undefined ? isTypeScriptProject() : options.typescript
|
options.isTypeScript = options.typescript==undefined ? isTypeScriptProject() : options.typescript
|
||||||
|
Loading…
x
Reference in New Issue
Block a user