question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not created extendroutes

See original GitHub issue

Version

nuxt-i18n: 6.12.1 nuxt: 2.12.2

Nuxt configuration

mode:

  • universal

Nuxt-i18n configuration

  i18n: {
    locales: [
      {
        code: "uk",
        iso: "uk-UA",
        name: "UA",
        file: "uk.json"
      },
      {
        code: "en",
        iso: "en-US",
        name: "EN",
        file: "en.json"
      }
    ],
    defaultLocale: "en",
    lazy: true,
    langDir: "lang/",
    detectBrowserLanguage: {
      useCookie: true,
      cookieKey: "language",
      alwaysRedirect: true
    },
    seo: false
  }

Reproduction Link

https://codesandbox.io/s/nuxt-i18n-custom-route-fjeed

What is Expected?

to work extendroutes https://nuxtjs.org/api/configuration-router#extendroutes

What is actually happening?

Update nuxt-i18n with 6.11.1 to 6.12.1, stopped working extendroutes

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
rchlcommented, Jun 2, 2020

Released v6.12.2 with the fix.

0reactions
rchlcommented, Aug 9, 2021

That doesn’t look related to the original issue. I think the component must be an imported component instance and not just a string.

Read more comments on GitHub >

github_iconTop Results From Across the Web

extendRoutes not working in a very confusing way #299
I am using extendRoutes in nuxt.config.js like so: router: ... for its example which essentially created a catch all route at root/:id ....
Read more >
The extendRoutes function is not being called in nuxt.config.js
I have found an answer after trying to get rid of parts of the code like @kissu commented. The problem comes from "./modules/cms/build"...
Read more >
The router Property - Nuxt
You may want to extend the routes created by Nuxt. You can do so via the extendRoutes option. ... The schema of the...
Read more >
API: The router Property - Nuxt.js
You may want to extend the routes created by Nuxt.js. You can do so via the extendRoutes option. Example of adding a custom...
Read more >
Creating Dynamic Routes in a Nuxt Application | CSS-Tricks
In this post, we'll be using an ecommerce store demo I built and ... We'll add the ability to add and remove items...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found