Nuxt/examples/i18n
Vyacheslav Bikbaev 159021eabe i18n example fix (#3482)
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 `/`.
2018-06-27 08:14:04 +02:00
..
layouts Remove slashes 2017-12-01 13:41:02 +01:00
locales Update i18n example to use vue-i18n 2017-04-14 11:55:04 +02:00
middleware i18n example fix (#3482) 2018-06-27 08:14:04 +02:00
pages refactor: add examples to lint 2017-10-31 21:43:55 +08:00
plugins Fix linting 2017-12-01 13:48:30 +01:00
store refactor: add examples to lint 2017-10-31 21:43:55 +08:00
nuxt.config.js feat: rewrite core to esm 2018-03-16 19:42:06 +03:30
package.json refactor: rename examples 2018-03-19 10:41:46 +08:00
README.md Add vue-i18n dependency 2017-04-14 12:52:13 +02:00