I am currently utilizing NuxtJS/i18n with TypeScript and have included its types in my TS config:
{
"compilerOptions": {
"types": [
"@nuxt/types",
"@nuxtjs/i18n",
]
}
}
However, when attempting to use it in components like:
this.$i18n.locales
An error occurs.
https://i.sstatic.net/WBTQD.png
https://i.sstatic.net/ucQLS.png
So, how can I resolve the types error for @nuxt/i18n?