From b26d3d6b6f2d0849cf81ae1cfe833794cf890973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Sun, 4 Jun 2017 14:28:39 +0200 Subject: [PATCH] Update i18n example --- examples/i18n/nuxt.config.js | 9 +++------ examples/i18n/package.json | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/examples/i18n/nuxt.config.js b/examples/i18n/nuxt.config.js index 9cf19567b3..726c1e7e10 100644 --- a/examples/i18n/nuxt.config.js +++ b/examples/i18n/nuxt.config.js @@ -1,16 +1,13 @@ module.exports = { + loading: { color: 'cyan' }, build: { vendor: ['vue-i18n'] }, router: { middleware: 'i18n' }, - plugins: [ - // Will inject the plugin in the $root app and also in the context as `i18n` - { src: '~plugins/i18n.js', injectAs: 'i18n' } - ], + plugins: ['~plugins/i18n.js',], generate: { routes: ['/', '/about', '/fr', '/fr/about'] - }, - loading: { color: 'cyan' }, + } } diff --git a/examples/i18n/package.json b/examples/i18n/package.json index 5dd206d014..d4096ad025 100644 --- a/examples/i18n/package.json +++ b/examples/i18n/package.json @@ -1,7 +1,7 @@ { "name": "nuxt-i18n", "dependencies": { - "nuxt": "latest", + "nuxt": "1.0.0-alpha.3", "vue-i18n": "^7.0.0" }, "scripts": {