{"action":"created","issue":{"url":"https://api.github.com/repos/angeloocana/gatsby-plugin-i18n/issues/31","repository_url":"https://api.github.com/repos/angeloocana/gatsby-plugin-i18n","labels_url":"https://api.github.com/repos/angeloocana/gatsby-plugin-i18n/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/angeloocana/gatsby-plugin-i18n/issues/31/comments","events_url":"https://api.github.com/repos/angeloocana/gatsby-plugin-i18n/issues/31/events","html_url":"https://github.com/angeloocana/gatsby-plugin-i18n/issues/31","id":296085465,"number":31,"title":"Making this work with Contentful Example: Missing Message error","user":{"login":"mccrodp","id":559938,"avatar_url":"https://avatars3.githubusercontent.com/u/559938?v=4","gravatar_id":"","url":"https://api.github.com/users/mccrodp","html_url":"https://github.com/mccrodp","followers_url":"https://api.github.com/users/mccrodp/followers","following_url":"https://api.github.com/users/mccrodp/following{/other_user}","gists_url":"https://api.github.com/users/mccrodp/gists{/gist_id}","starred_url":"https://api.github.com/users/mccrodp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mccrodp/subscriptions","organizations_url":"https://api.github.com/users/mccrodp/orgs","repos_url":"https://api.github.com/users/mccrodp/repos","events_url":"https://api.github.com/users/mccrodp/events{/privacy}","received_events_url":"https://api.github.com/users/mccrodp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-10T08:45:53Z","updated_at":"2018-02-17T11:34:35Z","closed_at":null,"author_association":"NONE","body":"@mccrodp commented on [Tue Feb 06 2018](https://github.com/angeloocana/gatsby-starter-default-i18n/issues/7)\n\nHey, firstly, many thanks for this repo, so helpful (using this to migrate a personal project from Elm). Have it almost working, just some misunderstanding of the way the layouts are working.\r\n\r\nI guess this works on something to do with: `useLangKeyLayout: true` in the gatsby.config.js file, right? Then you have your `en.js` layout, etc.\r\n\r\nI've followed the Contentful example here: https://github.com/gatsbyjs/gatsby/blob/master/examples/using-contentful/src/layouts/index.js\r\n\r\nI have tried to integrate the 2 concepts, but due the the way the layouts are perhaps, I get the below error:\r\n\r\n>[React Intl] Missing message: \"selectLanguage\" for locale: \"en\"\r\n> [React Intl] Cannot format message: \"selectLanguage\", using message id as fallback.\r\n\r\n<img width=\"525\" alt=\"screen shot 2018-02-06 at 20 50 34\" src=\"https://user-images.githubusercontent.com/559938/35858458-d442ccde-0b7f-11e8-8820-177c1883273e.png\">\r\n\r\nMy *add-menu* branch here shows how this is setups (simple enough at the moment). https://github.com/ahimsayoga/ahimsayogajp/blob/add-menu/src/layouts/index.js\r\n\r\nThe only real difference is the content is dynamic from Contentful and it uses\r\n`gatsby.node.js` to import content: https://github.com/ahimsayoga/ahimsayogajp/blob/add-menu/gatsby-node.js#L12\r\nIt points to a template `general.js`: https://github.com/ahimsayoga/ahimsayogajp/blob/add-menu/src/templates/general.js\r\n\r\nI'm not exactly sure if I should be importing this intl functionality to the template, or if I need to wire up the layout files for this Contentful scenario, or both. New enough to practical application of React also, so my knowledge can be lacking a bit also. Cheers!\n\n"},"comment":{"url":"https://api.github.com/repos/angeloocana/gatsby-plugin-i18n/issues/comments/366435445","html_url":"https://github.com/angeloocana/gatsby-plugin-i18n/issues/31#issuecomment-366435445","issue_url":"https://api.github.com/repos/angeloocana/gatsby-plugin-i18n/issues/31","id":366435445,"user":{"login":"angeloocana","id":5487699,"avatar_url":"https://avatars1.githubusercontent.com/u/5487699?v=4","gravatar_id":"","url":"https://api.github.com/users/angeloocana","html_url":"https://github.com/angeloocana","followers_url":"https://api.github.com/users/angeloocana/followers","following_url":"https://api.github.com/users/angeloocana/following{/other_user}","gists_url":"https://api.github.com/users/angeloocana/gists{/gist_id}","starred_url":"https://api.github.com/users/angeloocana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angeloocana/subscriptions","organizations_url":"https://api.github.com/users/angeloocana/orgs","repos_url":"https://api.github.com/users/angeloocana/repos","events_url":"https://api.github.com/users/angeloocana/events{/privacy}","received_events_url":"https://api.github.com/users/angeloocana/received_events","type":"User","site_admin":false},"created_at":"2018-02-17T11:34:35Z","updated_at":"2018-02-17T11:34:35Z","author_association":"OWNER","body":"Awesome!!! Congratulations! =D"}}
{"actor":{"display_login":"angeloocana"}}