I'm trying to use nuxt-i18n to get internationalization for my application, the following are the nuxt-i18n configs and it works fine, but when I want to use strategy: 'no_prefix' it gives errors ... not sure what to do, please suggest.
i18n: {
//strategy: 'no_prefix',
defaultLocale: 'en',
locales: [
{
code: 'en',
name: 'English',
iso: 'en-US',
file: 'english.js'
},
{
code: 'hi',
name: 'Hindi',
file: 'hindi.js'
}
],
lazy: true,
langDir: 'static/locales/'
},
https://nuxt-community.github.io/nuxt-i18n/routing.html#strategy
WARN [nuxt-i18n] Passing non-current locale to switchLocalePath is unsupported when using no_prefix strategy
19:39:39WARN [nuxt-i18n] Passing non-current locale to localePath is unsupported when using no_prefix strategy
19:39:39