{"action":"created","issue":{"url":"https://api.github.com/repos/nuxt-community/nuxt-i18n/issues/557","repository_url":"https://api.github.com/repos/nuxt-community/nuxt-i18n","labels_url":"https://api.github.com/repos/nuxt-community/nuxt-i18n/issues/557/labels{/name}","comments_url":"https://api.github.com/repos/nuxt-community/nuxt-i18n/issues/557/comments","events_url":"https://api.github.com/repos/nuxt-community/nuxt-i18n/issues/557/events","html_url":"https://github.com/nuxt-community/nuxt-i18n/issues/557","id":547156697,"node_id":"MDU6SXNzdWU1NDcxNTY2OTc=","number":557,"title":"this.$i18n.locales seems undefined","user":{"login":"coin-au-carre","id":1044719,"node_id":"MDQ6VXNlcjEwNDQ3MTk=","avatar_url":"https://avatars3.githubusercontent.com/u/1044719?v=4","gravatar_id":"","url":"https://api.github.com/users/coin-au-carre","html_url":"https://github.com/coin-au-carre","followers_url":"https://api.github.com/users/coin-au-carre/followers","following_url":"https://api.github.com/users/coin-au-carre/following{/other_user}","gists_url":"https://api.github.com/users/coin-au-carre/gists{/gist_id}","starred_url":"https://api.github.com/users/coin-au-carre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coin-au-carre/subscriptions","organizations_url":"https://api.github.com/users/coin-au-carre/orgs","repos_url":"https://api.github.com/users/coin-au-carre/repos","events_url":"https://api.github.com/users/coin-au-carre/events{/privacy}","received_events_url":"https://api.github.com/users/coin-au-carre/received_events","type":"User","site_admin":false},"labels":[{"id":880501037,"node_id":"MDU6TGFiZWw4ODA1MDEwMzc=","url":"https://api.github.com/repos/nuxt-community/nuxt-i18n/labels/cmty:bug-report","name":"cmty:bug-report","color":"f7b2c0","default":false,"description":null}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2020-01-08T23:13:29Z","updated_at":"2020-01-09T18:25:53Z","closed_at":null,"author_association":"NONE","body":"### Version\n\n[v5.3.0](https://github.com/nuxt-i18n/releases/tag/v5.3.0)\n\n### Reproduction link\n\n[https://nuxt-community.github.io/nuxt-i18n/lang-switcher.html](https://nuxt-community.github.io/nuxt-i18n/lang-switcher.html)\n\n### Steps to reproduce\n\nFollow the steps on the first section of [Lang Switcher](https://nuxt-community.github.io/nuxt-i18n/lang-switcher.html#lang-switcher)\n\n### What is expected ?\n\nthis.$i18n.locales should contain an array of 3 objects which are defined in nuxt.js.config. \n\n\n### What is actually happening?\n\n`this.$i18n.locales` is undefined \n\n```\nTypeError\nCannot read property 'filter' of undefined\n```\n\n### Additional comments?\n\nthis.$i18n.availableLocales returns an array `['en','es','fr]`\n\n<!--cmty--><!--cmty_prevent_hook-->\n<div align=\"right\"><sub><em>This bug report is available on <a href=\"https://cmty.app/nuxt\">Nuxt</a> community (<a href=\"https://cmty.app/nuxt/nuxt-i18n/issues/c365\">#c365</a>)</em></sub></div>"},"comment":{"url":"https://api.github.com/repos/nuxt-community/nuxt-i18n/issues/comments/572689968","html_url":"https://github.com/nuxt-community/nuxt-i18n/issues/557#issuecomment-572689968","issue_url":"https://api.github.com/repos/nuxt-community/nuxt-i18n/issues/557","id":572689968,"node_id":"MDEyOklzc3VlQ29tbWVudDU3MjY4OTk2OA==","user":{"login":"coin-au-carre","id":1044719,"node_id":"MDQ6VXNlcjEwNDQ3MTk=","avatar_url":"https://avatars3.githubusercontent.com/u/1044719?v=4","gravatar_id":"","url":"https://api.github.com/users/coin-au-carre","html_url":"https://github.com/coin-au-carre","followers_url":"https://api.github.com/users/coin-au-carre/followers","following_url":"https://api.github.com/users/coin-au-carre/following{/other_user}","gists_url":"https://api.github.com/users/coin-au-carre/gists{/gist_id}","starred_url":"https://api.github.com/users/coin-au-carre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coin-au-carre/subscriptions","organizations_url":"https://api.github.com/users/coin-au-carre/orgs","repos_url":"https://api.github.com/users/coin-au-carre/repos","events_url":"https://api.github.com/users/coin-au-carre/events{/privacy}","received_events_url":"https://api.github.com/users/coin-au-carre/received_events","type":"User","site_admin":false},"created_at":"2020-01-09T18:25:53Z","updated_at":"2020-01-09T18:25:53Z","author_association":"NONE","body":"Ok I think I got the problems. Putting a pages/test.vue files works. However if I put this code in layouts/default.vue, it does not work. My vue knowledge is newbish I guess I try to do things I am not supposed to do in layouts/ ?  "}}
{"actor":{"display_login":"coin-au-carre"}}