Dennis - Platowner
Nuxtjs/I18n not initialising properly
We used the nuxtjs/i18n v8.0.0-rc3, and now started upgrading to v9.2.1. We are using Nuxt v3.8.0. On trying to initialise the library in Nuxt solution we am getting different errors. I've tried everything I could and I can't seem to figure out what I'm doing wrong.
in nuxt.config.js we defined the modules:
I then continue to define the configuration for i18n as so:
Translation files in the i18n/locales/ folder (nl-be.js):
At the same level as the nuxt.config.js file, I have the nuxt-i18n.js file defined as so:
After then starting the Nuxt project, i get this error:
ERROR Cannot start nuxt: Cannot create property 'locales' on string '[object Object]'
So I tried pasting the object directly in the vueI18n instead of the path to the file, and when doing so, I receive the error:
ERROR Cannot start nuxt: input.replace is not a function
I am completely out of idea's, I got no idea what I need to do to solve this issue. Any help is greatly appreciated!6 replies