Hello,
I'm looking for a clean way to produce routes with the following schema:
/:locale?/url1
, /:locale?/url2
, and /:locale?
so my application can be reached at /url1
but also /fr/url1
, ...
The example proposed in the documentation (https://nuxtjs.org/examples/i18n) is not convincing, as every page should be duplicated under _ lang
, this is impossible for most applications with a lot of pages.
Using the extendRoutes
is also non pertinent as we should duplicate all the routing inside the config file; using the filesystem to define routing would be consequently irrelevant (and I want to avoid two different approaches for the same thing).
Is there a solution to have the locale
parameter being optional, whatever pages are added later?