Replies: 1 comment 2 replies
-
Just read https://i18n.nuxtjs.org/custom-paths#modules-configuration carefully and follow the structure that's documented. You seem to have an extra |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I installed the i18n package for switching languages. Then I set en (default) and id. So I want one of the pages (eg about) with the id language. The problem is I don't know the config? I use nuxt js
I tried the configuration, but it doesn't work :
i18n: {
locales: [ 'en', 'id'],
defaultLocale: 'en',
parsePages: false,
pages: {
paths: {
"software-house" : {
id: '/software-house',
}
},
},
vueI18n: {
fallbackLocale: 'en',
messages: {
'en' : require('./locales/en.json'),
'id' : require('./locales/id.json')
},
},
},
Beta Was this translation helpful? Give feedback.
All reactions