Javascript nuxt-i18n路由不适用于SSR,但适用于SPA

Javascript nuxt-i18n路由不适用于SSR,但适用于SPA,javascript,vue.js,nuxt.js,server-side-rendering,nuxt-i18n,Javascript,Vue.js,Nuxt.js,Server Side Rendering,Nuxt I18n,我当时正在使用nuxt universal(ssr)应用程序,我想使用添加翻译,我遵循了网站上的配置说明,翻译工作正常,但路由根本不起作用单击链接会更改浏览器上的URL,但不会更改页面上的内容 这是我的nuxt配置文件 import colors from 'vuetify/es5/util/colors' export default { mode: 'universal', head: { titleTemplate: '%s - sme-cip', title:

我当时正在使用nuxt universal(ssr)应用程序,我想使用添加翻译,我遵循了网站上的配置说明,翻译工作正常,但路由根本不起作用单击链接会更改浏览器上的URL,但不会更改页面上的内容

这是我的nuxt配置文件

import colors from 'vuetify/es5/util/colors'

export default {
  mode: 'universal',
  head: {
    titleTemplate: '%s - sme-cip',
    title: 'sme-cip',
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: '' }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
    ]
  },


  css: [
    '~/assets/fonts/raleway.css',
    '~/assets/main.css'
  ],

  // Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
  plugins: [
  ],

  // Auto import components (https://go.nuxtjs.dev/config-components)
  components: true,

  // Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules)
  buildModules: [
    '@nuxtjs/apollo',
    '@nuxtjs/vuetify',
  ],

  apollo: {
    clientConfigs: {
      default: '~/client-config.js'

    }
  },

  // Modules (https://go.nuxtjs.dev/config-modules)
  modules: [
    '@nuxtjs/axios',
    [
      'nuxt-i18n',
      {
        vueI18n: {
          fallbackLocale: 'en',
          dateTimeFormats: {
            en: {
              short: {
                year: 'numeric',
                month: 'short',
                day: 'numeric'
              },
              long: {
                year: 'numeric',
                month: 'short',
                day: 'numeric',
                weekday: 'short',
                hour: 'numeric',
                minute: 'numeric'
              }
            }
          }
        },
        locales: [
          {
            code: 'en',
            file: 'en.json',
            name: 'English'
          },
          {
            code: 'አማ',
            file: 'am.json',
            name: 'አማርኛ'
          }
        ],
        lazy: true,
        langDir: 'lang/',
        defaultLocale: 'en',
        strategy: 'prefix_and_default'
      }
    ]
  ],

  // Axios module configuration (https://go.nuxtjs.dev/config-axios)
  axios: {},

  // Vuetify module configuration (https://go.nuxtjs.dev/config-vuetify)
  vuetify: {
    treeShake: true,

    defaultAssets: {
      font: {
        family: 'Raleway'
      }
    },
    customVariables: ['~/assets/variables.scss'],
    theme: {
      dark: false,
      themes: {
        light: {
          primary: "#245478",
          accent: colors.grey.darken3,
          secondary: colors.amber.darken3,
          info: colors.teal.lighten1,
          warning: colors.amber.base,
          error: colors.deepOrange.accent4,
          success: colors.green.accent3
        }
      }
    }
  },


}
下面是我如何导航到一条路线

  <v-btn
              color="black"
              class="px-3 font-weight-bold black--text text-capitalize"
              :to="localePath({ name: 'products' })"
              text
              >Products</v-btn

products您在浏览器控制台或网络工具中看到任何活动了吗?模块后面没有出现'i18n:{}`?在文档中有一个额外的行