From 3cb603f92215716c4fb197aace27e2c771f7bc31 Mon Sep 17 00:00:00 2001 From: Sebastien Chopin Date: Wed, 6 Sep 2017 15:32:09 +0200 Subject: [PATCH] Fix i18n example --- examples/i18n/plugins/i18n.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/i18n/plugins/i18n.js b/examples/i18n/plugins/i18n.js index c767fd7f3e..81293fb7a7 100644 --- a/examples/i18n/plugins/i18n.js +++ b/examples/i18n/plugins/i18n.js @@ -3,11 +3,11 @@ import VueI18n from 'vue-i18n' Vue.use(VueI18n) -export default ({ app, isClient, store, serverStore }) => { +export default ({ app, isClient, store }) => { // Set i18n instance on app // This way we can use it in middleware and pages asyncData/fetch app.i18n = new VueI18n({ - locale: (isClient ? serverStore.locale : store.state.locale), + locale: store.state.locale, fallbackLocale: 'en', messages: { 'en': require('~/locales/en.json'),