{"action":"opened","issue":{"url":"https://api.github.com/repos/martinlindhe/laravel-vue-i18n-generator/issues/6","repository_url":"https://api.github.com/repos/martinlindhe/laravel-vue-i18n-generator","labels_url":"https://api.github.com/repos/martinlindhe/laravel-vue-i18n-generator/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/martinlindhe/laravel-vue-i18n-generator/issues/6/comments","events_url":"https://api.github.com/repos/martinlindhe/laravel-vue-i18n-generator/issues/6/events","html_url":"https://github.com/martinlindhe/laravel-vue-i18n-generator/issues/6","id":176419555,"number":6,"title":"[vue-i18n] Cannot translate the value of keypath...","user":{"login":"miranrasulian","id":7046255,"avatar_url":"https://avatars.githubusercontent.com/u/7046255?v=3","gravatar_id":"","url":"https://api.github.com/users/miranrasulian","html_url":"https://github.com/miranrasulian","followers_url":"https://api.github.com/users/miranrasulian/followers","following_url":"https://api.github.com/users/miranrasulian/following{/other_user}","gists_url":"https://api.github.com/users/miranrasulian/gists{/gist_id}","starred_url":"https://api.github.com/users/miranrasulian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miranrasulian/subscriptions","organizations_url":"https://api.github.com/users/miranrasulian/orgs","repos_url":"https://api.github.com/users/miranrasulian/repos","events_url":"https://api.github.com/users/miranrasulian/events{/privacy}","received_events_url":"https://api.github.com/users/miranrasulian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-12T16:21:12Z","updated_at":"2016-09-12T16:21:12Z","closed_at":null,"body":"Installed the package on Laravel 5.3\r\nInstalled vue-i18n\r\ngenerated the include file\r\n\r\nthen added:\r\n\r\n```javascript\r\nwindow.Vue = require('vue');\r\nimport VueInternationalization from 'vue-i18n';\r\nimport Locales from './vue-i18n-locales.generated.js';\r\n\r\nVue.use(VueInternationalization, {\r\n    lang: 'fa',\r\n    locales: Locales\r\n});\r\n```\r\n\r\nNow when adding a translate like {{ $t('app.email') }}, the browser-console give me this error message:\r\n\r\n`[vue-i18n] Cannot translate the value of keypath \"app.register_email\". Use the value of keypath as default`\r\n\r\nBut when using this code, it works!\r\n\r\n```javascript\r\nvar VueI18n = require('vue-i18n')\r\nimport locales from './vue-i18n-locales.generated.js';\r\n\r\n// set lang\r\nVue.config.lang = 'fa'\r\n\r\n// set locales\r\nObject.keys(locales).forEach(function (lang) {\r\n  Vue.locale(lang, locales[lang])\r\n})\r\n```"}}
{"actor":{"display_login":"miranrasulian"}}