{"action":"created","issue":{"url":"https://api.github.com/repos/kazupon/vue-i18n/issues/411","repository_url":"https://api.github.com/repos/kazupon/vue-i18n","labels_url":"https://api.github.com/repos/kazupon/vue-i18n/issues/411/labels{/name}","comments_url":"https://api.github.com/repos/kazupon/vue-i18n/issues/411/comments","events_url":"https://api.github.com/repos/kazupon/vue-i18n/issues/411/events","html_url":"https://github.com/kazupon/vue-i18n/issues/411","id":352852678,"node_id":"MDU6SXNzdWUzNTI4NTI2Nzg=","number":411,"title":"Custom i18n block breaks this.$i18n link","user":{"login":"bovesan","id":8511476,"node_id":"MDQ6VXNlcjg1MTE0NzY=","avatar_url":"https://avatars0.githubusercontent.com/u/8511476?v=4","gravatar_id":"","url":"https://api.github.com/users/bovesan","html_url":"https://github.com/bovesan","followers_url":"https://api.github.com/users/bovesan/followers","following_url":"https://api.github.com/users/bovesan/following{/other_user}","gists_url":"https://api.github.com/users/bovesan/gists{/gist_id}","starred_url":"https://api.github.com/users/bovesan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bovesan/subscriptions","organizations_url":"https://api.github.com/users/bovesan/orgs","repos_url":"https://api.github.com/users/bovesan/repos","events_url":"https://api.github.com/users/bovesan/events{/privacy}","received_events_url":"https://api.github.com/users/bovesan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-22T08:30:49Z","updated_at":"2018-08-25T03:03:50Z","closed_at":null,"author_association":"NONE","body":"This might be expected behavior, but I could not understand why my locale changes where suddenly not propagating beyond the local component. \r\n\r\n### What is actually happening?\r\nIf a single file component has a custom i18n block, setting `this.$i18n.locale` only affects that component.\r\n### vue & vue-i18n version\r\n2.5.17, 8.0.0\r\n\r\n### Example\r\n```\r\n<template>\r\n<div>\r\n<input :placeholder=\"$t('Search ...')\">\r\n            <a href=\"/language/en\" class=\"dropdown-item\" v-on:click.prevent=\"setLanguage('en')\">English</a>\r\n            <a href=\"/language/no\" class=\"dropdown-item\" v-on:click.prevent=\"setLanguage('no')\">Norsk</a>\r\n</div>\r\n</template>\r\n<i18n>\r\n{\r\n  \"en\": {\r\n  },\r\n  \"no\": {\r\n    \"Search ...\": \"Søk ...\"\r\n  }\r\n}\r\n</i18n>\r\n<script>\r\n export default {\r\n    methods: {\r\n      setLanguage(language){\r\n        this.$i18n.locale = language;\r\n      }\r\n    }\r\n  }\r\n</script>\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/kazupon/vue-i18n/issues/comments/415928621","html_url":"https://github.com/kazupon/vue-i18n/issues/411#issuecomment-415928621","issue_url":"https://api.github.com/repos/kazupon/vue-i18n/issues/411","id":415928621,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTkyODYyMQ==","user":{"login":"oahccc","id":17583914,"node_id":"MDQ6VXNlcjE3NTgzOTE0","avatar_url":"https://avatars1.githubusercontent.com/u/17583914?v=4","gravatar_id":"","url":"https://api.github.com/users/oahccc","html_url":"https://github.com/oahccc","followers_url":"https://api.github.com/users/oahccc/followers","following_url":"https://api.github.com/users/oahccc/following{/other_user}","gists_url":"https://api.github.com/users/oahccc/gists{/gist_id}","starred_url":"https://api.github.com/users/oahccc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oahccc/subscriptions","organizations_url":"https://api.github.com/users/oahccc/orgs","repos_url":"https://api.github.com/users/oahccc/repos","events_url":"https://api.github.com/users/oahccc/events{/privacy}","received_events_url":"https://api.github.com/users/oahccc/received_events","type":"User","site_admin":false},"created_at":"2018-08-25T03:03:50Z","updated_at":"2018-08-25T03:03:50Z","author_association":"NONE","body":"I encountered the same issue. Is this an intended behavior?"}}
{"actor":{"display_login":"oahccc"}}