{"action":"created","issue":{"url":"https://api.github.com/repos/kazupon/vue-i18n/issues/28","repository_url":"https://api.github.com/repos/kazupon/vue-i18n","labels_url":"https://api.github.com/repos/kazupon/vue-i18n/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/kazupon/vue-i18n/issues/28/comments","events_url":"https://api.github.com/repos/kazupon/vue-i18n/issues/28/events","html_url":"https://github.com/kazupon/vue-i18n/issues/28","id":150666276,"number":28,"title":"Vue.locale is not a function - Issue after upgrading to 3.0","user":{"login":"sagaio","id":8861915,"avatar_url":"https://avatars.githubusercontent.com/u/8861915?v=3","gravatar_id":"","url":"https://api.github.com/users/sagaio","html_url":"https://github.com/sagaio","followers_url":"https://api.github.com/users/sagaio/followers","following_url":"https://api.github.com/users/sagaio/following{/other_user}","gists_url":"https://api.github.com/users/sagaio/gists{/gist_id}","starred_url":"https://api.github.com/users/sagaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagaio/subscriptions","organizations_url":"https://api.github.com/users/sagaio/orgs","repos_url":"https://api.github.com/users/sagaio/repos","events_url":"https://api.github.com/users/sagaio/events{/privacy}","received_events_url":"https://api.github.com/users/sagaio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kazupon/vue-i18n/labels/need%20more%20repro","name":"need more repro","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-24T14:27:29Z","updated_at":"2016-04-26T21:51:29Z","closed_at":null,"body":"I'm getting `Unknown TypeError: Vue.locale is not a function`\r\n```\r\nvar VueI18n = require('vue-i18n')\r\n\r\nVue.use(VueI18n)\r\nVue.config.lang = 'sv'\r\nvar locales = require('./lang/locales')\r\n\r\nObject.keys(locales).forEach(function (lang) {\r\n  Vue.locale(lang, locales[lang])\r\n})\r\n``` \r\nAnd in my locales file I have like I had in 2.*:\r\n```\r\nmodule.exports = {\r\n  en: {\r\n    message: 'Hi',\r\n  },\r\n  sv: {\r\n    message: 'Hej',\r\n  }\r\n}\r\n\r\n````\r\n"},"comment":{"url":"https://api.github.com/repos/kazupon/vue-i18n/issues/comments/214899005","html_url":"https://github.com/kazupon/vue-i18n/issues/28#issuecomment-214899005","issue_url":"https://api.github.com/repos/kazupon/vue-i18n/issues/28","id":214899005,"user":{"login":"Mdpproduction","id":6594262,"avatar_url":"https://avatars.githubusercontent.com/u/6594262?v=3","gravatar_id":"","url":"https://api.github.com/users/Mdpproduction","html_url":"https://github.com/Mdpproduction","followers_url":"https://api.github.com/users/Mdpproduction/followers","following_url":"https://api.github.com/users/Mdpproduction/following{/other_user}","gists_url":"https://api.github.com/users/Mdpproduction/gists{/gist_id}","starred_url":"https://api.github.com/users/Mdpproduction/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mdpproduction/subscriptions","organizations_url":"https://api.github.com/users/Mdpproduction/orgs","repos_url":"https://api.github.com/users/Mdpproduction/repos","events_url":"https://api.github.com/users/Mdpproduction/events{/privacy}","received_events_url":"https://api.github.com/users/Mdpproduction/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T21:51:29Z","updated_at":"2016-04-26T21:51:29Z","body":"I've the same error. I'm using it with vue-router. And i don't know why doesn't works.\r\nI import it correctly like that:\r\n\r\nimport VueI18n from 'vue-i18n';\r\n\r\nand then\r\n\r\nVue.use(VueI18n);\r\n\r\nwith the others plugins. But inside my App component, if i tried to use Vue.locale i got that error. Any suggestions?"}}