'Cannot translate the value of keypath when setting lazy to true

I have an nuxt app with i18n module.

I always receive Cannot translate the value of keypath 'sidebar.links.dashboard'. Use the value of keypath as default when switching the language when i set lazy to true inside the configs:

i18n: {
    detectBrowserLanguage: {
      useCookie: true,
      cookieKey: 'i18n_languages',
    },
    defaultLocale: 'en',
    strategy: 'no_prefix',
    langDir: 'languages/',
    lazy: true,
    locales: [
      {
        code: 'en',
        file: 'en.json',
        name: 'English',
      },
      {
        code: 'de',
        name: 'German',
        file: 'de.json',
      },
    ],
  }

When i remove lazy: true the code works.

What did i do wrong here?

Also: Changing the name to .js does not work either



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source