mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
159021eabe
Today I was implementing an i18n according to this example in one of my projects. Unfortunately, current example fails if (for example) our `defaultLocale` is `en` and our url is `example.com/en/` or `example.com/en/news`: middleware redirects into `example.com//` and `example.con//news` respectively. I've fixed the example (not sure if it is the most elegant way to do it though), so it replaces `/en/` with `/`. |
||
---|---|---|
.. | ||
layouts | ||
locales | ||
middleware | ||
pages | ||
plugins | ||
store | ||
nuxt.config.js | ||
package.json | ||
README.md |