我正在尝试使用 nuxt-i18n 为我的应用程序实现国际化,以下是 nuxt-i18n 配置,它工作正常,但是当我想使用策略时:'no_prefix' 它给出了错误......不知道该怎么做做,请建议。
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
警告 [nuxt-i18n] 使用 no_prefix 策略时,不支持将非当前语言环境传递给 switchLocalePath
19:39:39警告 [nuxt-i18n] 使用 no_prefix 策略时,不支持将非当前语言环境传递给 localePath
19:39:39