我在 typescript 中使用nuxtjs / i18n并且我在TS config中添加了它的类型:
{
"compilerOptions": {
"types": [
"@nuxt/types",
"@nuxtjs/i18n",
]
}
}
但是在我想使用的组件中
this.$i18n.locales
我有这个错误
那么,如何修复 @nuxt/i18n 的类型错误?
我在 typescript 中使用nuxtjs / i18n并且我在TS config中添加了它的类型:
{
"compilerOptions": {
"types": [
"@nuxt/types",
"@nuxtjs/i18n",
]
}
}
但是在我想使用的组件中
this.$i18n.locales
我有这个错误
那么,如何修复 @nuxt/i18n 的类型错误?