// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Vuex from 'vuex'
import vuexI18n from 'vuex-i18n'
import App from './App'
import router from './router'
import axios from 'axios'
import svI18n from '@/i18n/sv'

Vue.config.productionTip = false

Vue.use(Vuex)
Vue.use(axios)

const store = new Vuex.Store({
  modules: {
    i18n: vuexI18n.store
  }
})

Vue.use(vuexI18n.plugin, store, {
  moduleName: 'i18n',
  onTranslationNotFound (locale, key) {
    console.warn(`i18n :: Key '${key}' not found for locale '${locale}'`)
  }
})

Vue.i18n.add('sv', svI18n)
Vue.i18n.set('sv')
Vue.i18n.fallback('sv')

/* eslint-disable no-new */
new Vue({
  store,
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})

@@ -295,39 +295,8 @@
 ios'
-%0Aimport svI18n from '@/i18n/sv'
 %0A%0AVu
@@ -616,35 +616,8 @@
 %7D)%0A%0A
-Vue.i18n.add('sv', svI18n)%0A
 Vue.

Remove old import