neetjn / v-localize

Simple localization plugin for the amazing Vue.js.

Home Page:https://neetjn.github.io/v-localize/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot read property 'installed'

cirience-zz opened this issue · comments

I followed every step of your guide, and I'm receiving the following error:

chrome error

I've attached my code for you.

import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false

// i18n
import { Localize } from 'v-localize'
Vue.use(Localize)

var localize = Localize.config({
  default: 'en',
  available: ['en', 'sp', 'pr', 'ch'],
  not_found: 'en',
  localizations: {
    en: {
      header: {
        title: 'English'
      }
    },
    sp: {
      header: {
        title: 'Spanish'
      }
    },
    pr: {
      header: {
        title: 'Portuguese'
      }
    }
  }
})

new Vue({
  el: '#app',
  localize,
  router,
  template: '<App/>',
  components: { App }
})

Nevermind, I'm an idiot.