{"action":"created","issue":{"url":"https://api.github.com/repos/kirschbaum-development/laravel-translations-loader/issues/9","repository_url":"https://api.github.com/repos/kirschbaum-development/laravel-translations-loader","labels_url":"https://api.github.com/repos/kirschbaum-development/laravel-translations-loader/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/kirschbaum-development/laravel-translations-loader/issues/9/comments","events_url":"https://api.github.com/repos/kirschbaum-development/laravel-translations-loader/issues/9/events","html_url":"https://github.com/kirschbaum-development/laravel-translations-loader/issues/9","id":417438900,"node_id":"MDU6SXNzdWU0MTc0Mzg5MDA=","number":9,"title":"Cannot translate the value of keypath 'auth.failed'. Use the value of keypath as default.","user":{"login":"Morinohtar","id":5765516,"node_id":"MDQ6VXNlcjU3NjU1MTY=","avatar_url":"https://avatars0.githubusercontent.com/u/5765516?v=4","gravatar_id":"","url":"https://api.github.com/users/Morinohtar","html_url":"https://github.com/Morinohtar","followers_url":"https://api.github.com/users/Morinohtar/followers","following_url":"https://api.github.com/users/Morinohtar/following{/other_user}","gists_url":"https://api.github.com/users/Morinohtar/gists{/gist_id}","starred_url":"https://api.github.com/users/Morinohtar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Morinohtar/subscriptions","organizations_url":"https://api.github.com/users/Morinohtar/orgs","repos_url":"https://api.github.com/users/Morinohtar/repos","events_url":"https://api.github.com/users/Morinohtar/events{/privacy}","received_events_url":"https://api.github.com/users/Morinohtar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2019-03-05T18:23:44Z","updated_at":"2019-03-07T11:42:28Z","closed_at":null,"author_association":"NONE","body":"## Packages\r\n```json\r\n\"vue\": \"^2.6.6\",\r\n\"vue-i18n\": \"^8.8.2\",\r\n\"@kirschbaum-development/laravel-translations-loader\": \"^0.4.2\",\r\n```\r\n\r\nI'm doing a simple test:\r\n\r\n### app.js has the below code among other things\r\n\r\n```js\r\nwindow.Vue = require('vue');\r\n\r\nimport VueI18n from 'vue-i18n';\r\n\r\nimport languageBundle from '@kirschbaum-development/laravel-translations-loader/php?parameters={{ $1 }}!@kirschbaum-development/laravel-translations-loader';\r\n\r\nVue.use(VueI18n);\r\n\r\nconst fallbackLocale = 'en';\r\n\r\nconst i18n = new VueI18n({\r\n    fallbackLocale,\r\n    locale: 'en',\r\n    messages: languageBundle\r\n});\r\n```\r\n\r\n### ExampleComponent.vue has the bellow code among other things\r\n\r\n```vue\r\n{{ $t('auth.failed') }}\r\n```\r\n\r\nThis will produce the error: \r\n`Cannot translate the value of keypath 'auth.failed'. Use the value of keypath as default.`\r\n\r\nBut if i do this:\r\n\r\n```js\r\nconst i18n = new VueI18n({\r\n    fallbackLocale,\r\n    locale: 'en',\r\n    messages: {\r\n        en: {\r\n            auth: {\r\n                failed: 'For real?!'\r\n            }\r\n        },\r\n    }\r\n});\r\n```\r\n\r\nIt works... so, any ideas why it is not liking the `languageBundle`? Anything missing or wrong?"},"comment":{"url":"https://api.github.com/repos/kirschbaum-development/laravel-translations-loader/issues/comments/470494713","html_url":"https://github.com/kirschbaum-development/laravel-translations-loader/issues/9#issuecomment-470494713","issue_url":"https://api.github.com/repos/kirschbaum-development/laravel-translations-loader/issues/9","id":470494713,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3MDQ5NDcxMw==","user":{"login":"luisdalmolin","id":403446,"node_id":"MDQ6VXNlcjQwMzQ0Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/403446?v=4","gravatar_id":"","url":"https://api.github.com/users/luisdalmolin","html_url":"https://github.com/luisdalmolin","followers_url":"https://api.github.com/users/luisdalmolin/followers","following_url":"https://api.github.com/users/luisdalmolin/following{/other_user}","gists_url":"https://api.github.com/users/luisdalmolin/gists{/gist_id}","starred_url":"https://api.github.com/users/luisdalmolin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luisdalmolin/subscriptions","organizations_url":"https://api.github.com/users/luisdalmolin/orgs","repos_url":"https://api.github.com/users/luisdalmolin/repos","events_url":"https://api.github.com/users/luisdalmolin/events{/privacy}","received_events_url":"https://api.github.com/users/luisdalmolin/received_events","type":"User","site_admin":false},"created_at":"2019-03-07T11:42:28Z","updated_at":"2019-03-07T11:42:28Z","author_association":"MEMBER","body":"@Morinohtar any chance you could push the failing code to a repo so I can take a look?"}}
{"actor":{"display_login":"luisdalmolin"}}