{"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://avatars3.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":[{"id":292048085,"url":"https://api.github.com/repos/kazupon/vue-i18n/labels/need%20more%20repro","name":"need more repro","color":"e11d21","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2016-04-24T14:27:29Z","updated_at":"2017-04-09T18:43:28Z","closed_at":"2016-04-29T16:35:09Z","body":"I'm getting `Unknown TypeError: Vue.locale is not a function`\n\n```\nvar VueI18n = require('vue-i18n')\n\nVue.use(VueI18n)\nVue.config.lang = 'sv'\nvar locales = require('./lang/locales')\n\nObject.keys(locales).forEach(function (lang) {\n  Vue.locale(lang, locales[lang])\n})\n```\n\nAnd in my locales file I have like I had in 2.*:\n\n```\nmodule.exports = {\n  en: {\n    message: 'Hi',\n  },\n  sv: {\n    message: 'Hej',\n  }\n}\n\n```\n"},"comment":{"url":"https://api.github.com/repos/kazupon/vue-i18n/issues/comments/292804131","html_url":"https://github.com/kazupon/vue-i18n/issues/28#issuecomment-292804131","issue_url":"https://api.github.com/repos/kazupon/vue-i18n/issues/28","id":292804131,"user":{"login":"antarasi","id":7021775,"avatar_url":"https://avatars1.githubusercontent.com/u/7021775?v=3","gravatar_id":"","url":"https://api.github.com/users/antarasi","html_url":"https://github.com/antarasi","followers_url":"https://api.github.com/users/antarasi/followers","following_url":"https://api.github.com/users/antarasi/following{/other_user}","gists_url":"https://api.github.com/users/antarasi/gists{/gist_id}","starred_url":"https://api.github.com/users/antarasi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antarasi/subscriptions","organizations_url":"https://api.github.com/users/antarasi/orgs","repos_url":"https://api.github.com/users/antarasi/repos","events_url":"https://api.github.com/users/antarasi/events{/privacy}","received_events_url":"https://api.github.com/users/antarasi/received_events","type":"User","site_admin":false},"created_at":"2017-04-09T18:43:28Z","updated_at":"2017-04-09T18:43:28Z","body":"Probably you don't have to downgrade to version `5.03`:\r\nOnce you encounter similar issues, first check if you are instantiating i18n in `6.*` way, because API has braking changes in this version:\r\nhttp://kazupon.github.io/vue-i18n/en/started.html\r\nOther braking changes are described here:\r\nhttp://kazupon.github.io/vue-i18n/en/migrations.html\r\nThere is a lot of examples in the internet using previous API version that may cause a lot confusion at first glance."}}
{"actor":{"display_login":"antarasi"}}