Commit Graph

33 Commits

Author SHA1 Message Date
Clark Du 2b5c367efa refactor: use eslint-plugin-vue instead of eslint-plugin-html (#3517) 2018-07-12 14:03:50 +02:00
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 6cd7f04a4e
refactor: rename examples 2018-03-19 10:41:46 +08:00
Pooya Parsa 53e98a958c feat: rewrite core to esm 2018-03-16 19:42:06 +03:30
Pooya Parsa b8f8f18384 optimize webpack 2018-03-12 00:58:56 +03:30
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
Quique Fdez Guerra d9c89106c6
Fix linting 2017-12-01 13:48:30 +01:00
Quique Fdez Guerra 9d9319ea62
Remove slashes 2017-12-01 13:41:02 +01:00
Quique Fdez Guerra 31257dfe3a
Change name of method link for path 2017-12-01 13:38:45 +01:00
Quique Fdez Guerra 68b0685339
Add path method from i18n (custom) 2017-12-01 13:38:22 +01:00
Quique Fdez Guerra ffecaee7bc
Add link to easy use on templates 2017-12-01 13:33:33 +01:00
Clark Du 3e637c5d83
refactor: add examples to lint 2017-10-31 21:43:55 +08:00
Sébastien Chopin 23e1c3fd06 examples: Use process.server instead of isServer 2017-10-28 17:20:11 +02:00
Clark Du 161d9b59d2 feat: use latest nuxt in i18n example 2017-10-20 10:50:22 +03:30
Sebastien Chopin 3cb603f922 Fix i18n example 2017-09-06 15:32:09 +02:00
Sebastien Chopin 9d43db475b Fix example 2017-09-01 17:38:16 +02: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
Sébastien Chopin b26d3d6b6f Update i18n example 2017-06-04 14:28: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 d1804e1b9b Add vue-i18n dependency 2017-04-14 12:52:13 +02:00
Sebastien Chopin 135df99d3a Update i18n example to use vue-i18n 2017-04-14 11:55:04 +02:00
Alexandre Chopin 2c33be31d5 update i18n example 2017-02-13 19:08:22 +01:00
Sébastien Chopin 77f9e90c82 Update color 2017-02-10 13:05:05 +01:00
Sébastien Chopin 2c7eecace7 Fix i18n example 2017-02-10 12:55:51 +01:00
Sébastien Chopin e7f0200a58 Update examples 2017-02-10 02:22:33 +01:00
Sébastien Chopin bc47bdb24b Update examples 2017-02-10 01:20:22 +01:00
Sébastien Chopin d698cb4dca Update i18n example 2017-02-10 00:45:36 +01:00
Alexandre Chopin bf857e94bb fix routes example 2017-02-09 00:46:52 +01:00
Sébastien Chopin b7052c1df5 Fix route 2017-02-08 20:33:11 +01:00
Alexandre Chopin b85de3151d example i18n 2017-02-08 20:13:14 +01:00