When I use the Nuxt3 npm run generate command with the i18n package, I receive the following errors, but when I do not use the package, I do not receive the errors. How can I solve this error?
当我在I18N包中使用Nuxt3NPM run Generate命令时,我收到以下错误,但当我不使用该包时,我没有收到这些错误。我如何才能解决这个错误?
package.json: "@nuxtjs/i18n": "^8.0.0-rc.4",
Package.json:“@nuxtjs/i18n”:“^8.0.0-rc.4”,
`modules: [
"@nuxtjs/i18n",
],
`模块:[“@nuxtjs/i18n”,],
i18n: {
lazy: true,
langDir: "locales",
strategy: "prefix_and_default",
locales: [
{
code: "en",
iso: "en-US",
name: "English",
file: "en.json"
},
{
code: "tr",
iso: "tr-TR",
name: "Türkçe",
file: "tr.json"
},
],
defaultLocale: "tr",
}`
I18N:{lazy:true,langDir:“区域设置”,策略:“PREFIX_AND_DEFAULT”,区域设置:[{code:“en”,iso:“en-US”,name:“English”,file:“en.json”},{code:“tr”,iso:“tr-tr”,名称:“Türkçe”,文件:“tr.json”},],defaultLocale:“tr”,}`
I searched for ways to run the npm run generate command with the i18n package but couldn't find it. Without this package, npm run generate command works.
我在i18n包中搜索了运行npm run generate命令的方法,但找不到。没有这个包,npm run generate命令可以工作。
更多回答
优秀答案推荐
我是一名优秀的程序员,十分优秀!