Commit Graph

10 Commits

Author SHA1 Message Date
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
Clark Du
03f89421c2
fix: i18n lint issue 2018-03-01 21:03:36 +08:00
Philo van Kemenade
a694f31117
fetch default locale from i18n.fallbackLocale
Not all projects have 'en' as their default locale. It would be nicer to fetch a default locale from the `fallbackLocale` set on the i18n plugin, rather than hard coding it in middleware.
2018-02-28 22:51:58 +00:00
Sebastien Chopin
4ac14054f2 context: hotReload -> isHMR 2017-08-23 13:41:37 +02:00
Sébastien Chopin
6f84f69b7a Fix paths & typo 2017-07-08 19:55:39 +02:00
Sebastien Chopin
43de27faef Fix i18n example for alpha3 2017-05-31 13:21:55 +02:00
Sébastien Chopin
893d275a78 Update i18n example for 1.0 2017-05-21 21:01:08 +02:00
Sebastien Chopin
135df99d3a Update i18n example to use vue-i18n 2017-04-14 11:55:04 +02:00
Sébastien Chopin
2c7eecace7 Fix i18n example 2017-02-10 12:55:51 +01:00
Alexandre Chopin
b85de3151d example i18n 2017-02-08 20:13:14 +01:00