fix(cli): init命令的`VoerkaI18nScope is not defined

This commit is contained in:
wxzhang 2023-02-28 20:03:59 +08:00
parent 760c1cf0c5
commit 544a9f5528

View File

@ -177,7 +177,7 @@ program
.option('-a, --activeLanguage <name>', t('激活语言'), 'zh')
.hook("preAction",async function(location){
const lang= process.env.LANGUAGE || "zh"
await VoerkaI18nScope.change(lang)
await i18nScope.change(lang)
})
.action(async (location,options) => {
options.isTypeScript = options.typescript==undefined ? isTypeScriptProject() : options.typescript