{"action":"created","issue":{"url":"https://api.github.com/repos/kazupon/vue-cli-plugin-i18n/issues/15","repository_url":"https://api.github.com/repos/kazupon/vue-cli-plugin-i18n","labels_url":"https://api.github.com/repos/kazupon/vue-cli-plugin-i18n/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/kazupon/vue-cli-plugin-i18n/issues/15/comments","events_url":"https://api.github.com/repos/kazupon/vue-cli-plugin-i18n/issues/15/events","html_url":"https://github.com/kazupon/vue-cli-plugin-i18n/issues/15","id":343375709,"node_id":"MDU6SXNzdWUzNDMzNzU3MDk=","number":15,"title":"Plugin options namespaced doesn't works with enableInSFC","user":{"login":"ivomarsan","id":5050885,"node_id":"MDQ6VXNlcjUwNTA4ODU=","avatar_url":"https://avatars0.githubusercontent.com/u/5050885?v=4","gravatar_id":"","url":"https://api.github.com/users/ivomarsan","html_url":"https://github.com/ivomarsan","followers_url":"https://api.github.com/users/ivomarsan/followers","following_url":"https://api.github.com/users/ivomarsan/following{/other_user}","gists_url":"https://api.github.com/users/ivomarsan/gists{/gist_id}","starred_url":"https://api.github.com/users/ivomarsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivomarsan/subscriptions","organizations_url":"https://api.github.com/users/ivomarsan/orgs","repos_url":"https://api.github.com/users/ivomarsan/repos","events_url":"https://api.github.com/users/ivomarsan/events{/privacy}","received_events_url":"https://api.github.com/users/ivomarsan/received_events","type":"User","site_admin":false},"labels":[{"id":981273072,"node_id":"MDU6TGFiZWw5ODEyNzMwNzI=","url":"https://api.github.com/repos/kazupon/vue-cli-plugin-i18n/labels/cannot%20reproduce","name":"cannot reproduce","color":"27518c","default":false},{"id":1001456722,"node_id":"MDU6TGFiZWwxMDAxNDU2NzIy","url":"https://api.github.com/repos/kazupon/vue-cli-plugin-i18n/labels/need%20more%20repro","name":"need more repro","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-22T04:22:28Z","updated_at":"2018-07-23T03:40:03Z","closed_at":null,"author_association":"NONE","body":"Can you add `enableInSFC` support inside `i18n: {}` options?\r\nI guess that this option dont recognize inside i18n options object. To solve I go back to outside, like this in my `vue.config.js`:\r\n```javascript\r\nmodule.exports = {\r\n  // ...\r\n  pluginOptions: {\r\n    i18n: {\r\n      locale: 'en', \r\n      fallbackLocale: 'en', \r\n      localeDir: 'i18n/locales/messages',\r\n      enableInSFC: true // This Doesn't works!\r\n    },\r\n    enableInSFC: true // This Works!\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/kazupon/vue-cli-plugin-i18n/issues/comments/406930471","html_url":"https://github.com/kazupon/vue-cli-plugin-i18n/issues/15#issuecomment-406930471","issue_url":"https://api.github.com/repos/kazupon/vue-cli-plugin-i18n/issues/15","id":406930471,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjkzMDQ3MQ==","user":{"login":"ivomarsan","id":5050885,"node_id":"MDQ6VXNlcjUwNTA4ODU=","avatar_url":"https://avatars0.githubusercontent.com/u/5050885?v=4","gravatar_id":"","url":"https://api.github.com/users/ivomarsan","html_url":"https://github.com/ivomarsan","followers_url":"https://api.github.com/users/ivomarsan/followers","following_url":"https://api.github.com/users/ivomarsan/following{/other_user}","gists_url":"https://api.github.com/users/ivomarsan/gists{/gist_id}","starred_url":"https://api.github.com/users/ivomarsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivomarsan/subscriptions","organizations_url":"https://api.github.com/users/ivomarsan/orgs","repos_url":"https://api.github.com/users/ivomarsan/repos","events_url":"https://api.github.com/users/ivomarsan/events{/privacy}","received_events_url":"https://api.github.com/users/ivomarsan/received_events","type":"User","site_admin":false},"created_at":"2018-07-23T03:40:03Z","updated_at":"2018-07-23T03:40:03Z","author_association":"NONE","body":"Ok, passing in `vue.config.js` only:\r\n```javascript\r\ni18n: {\r\n  locale: 'en', \r\n  fallbackLocale: 'en', \r\n  localeDir: 'i18n/locales/messages',\r\n  enableInSFC: true\r\n}\r\n```\r\nAnd HelloI18n.vue...\r\n```vue\r\n<template>\r\n  <p>{{ $t('hello') }}</p>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n  name: 'HelloI18n'\r\n}\r\n</script>\r\n\r\n<i18n>\r\n{\r\n  \"en\": {\r\n    \"hello\": \"Hello i18n in SFC!\"\r\n  },\r\n  \"pt-BR\": {\r\n    \"hello\": \"Olá i18n em SFC :)\"\r\n  }\r\n}\r\n</i18n>\r\n```\r\nSo, I run `npm run serve` and receive this error message.\r\n![image](https://user-images.githubusercontent.com/5050885/43056084-8b525fc6-8e10-11e8-912d-39ba1923c604.png)\r\nWhen I change my `vue.config.js` and put `enableInSFC` outside from `i18n`, I receive:\r\n![image](https://user-images.githubusercontent.com/5050885/43056132-dbc0c5e2-8e10-11e8-827e-38dbf93c377a.png)\r\n\r\nEverything is ok, now?"}}
{"actor":{"display_login":"ivomarsan"}}