{"action":"created","issue":{"url":"https://api.github.com/repos/nuxt-community/nuxt-i18n/issues/52","repository_url":"https://api.github.com/repos/nuxt-community/nuxt-i18n","labels_url":"https://api.github.com/repos/nuxt-community/nuxt-i18n/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/nuxt-community/nuxt-i18n/issues/52/comments","events_url":"https://api.github.com/repos/nuxt-community/nuxt-i18n/issues/52/events","html_url":"https://github.com/nuxt-community/nuxt-i18n/issues/52","id":307802599,"number":52,"title":"[Bug Report] Breaks when you have extendRoutes defined ","user":{"login":"martinrisseeuw","id":8780559,"avatar_url":"https://avatars2.githubusercontent.com/u/8780559?v=4","gravatar_id":"","url":"https://api.github.com/users/martinrisseeuw","html_url":"https://github.com/martinrisseeuw","followers_url":"https://api.github.com/users/martinrisseeuw/followers","following_url":"https://api.github.com/users/martinrisseeuw/following{/other_user}","gists_url":"https://api.github.com/users/martinrisseeuw/gists{/gist_id}","starred_url":"https://api.github.com/users/martinrisseeuw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinrisseeuw/subscriptions","organizations_url":"https://api.github.com/users/martinrisseeuw/orgs","repos_url":"https://api.github.com/users/martinrisseeuw/repos","events_url":"https://api.github.com/users/martinrisseeuw/events{/privacy}","received_events_url":"https://api.github.com/users/martinrisseeuw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-22T20:28:41Z","updated_at":"2018-03-27T10:39:38Z","closed_at":"2018-03-26T02:13:49Z","author_association":"NONE","body":"First of all great plugin! I found a bug when you define extendRoutes (https://nuxtjs.org/api/configuration-router/#extendroutes) the Nuxt app breaks because of the module. The error it returns in the terminal is as follow:\r\n\r\n```\r\nTypeError: Cannot read property 'replace' of undefined\r\n\r\n  - routes.js:42 locales.forEach\r\n    [secrid-nuxt]/[nuxt-i18n]/lib/routes.js:42:40\r\n\r\n  - Array.forEach\r\n\r\n  - routes.js:39 localizedRoutes.forEach.baseRoute\r\n    [secrid-nuxt]/[nuxt-i18n]/lib/routes.js:39:13\r\n\r\n  - Array.forEach\r\n\r\n  - routes.js:38 generateRoutes\r\n    [secrid-nuxt]/[nuxt-i18n]/lib/routes.js:38:19\r\n\r\n  - module.js:23 Object.extendRoutes\r\n    [secrid-nuxt]/[nuxt-i18n]/lib/module.js:23:23\r\n\r\n  - utils.js:119 Object.extendRoutes\r\n    [secrid-nuxt]/[nuxt]/lib/common/utils.js:119:23\r\n\r\n  - builder.js:347 Builder.generateRoutesAndFiles\r\n    [secrid-nuxt]/[nuxt]/lib/builder/builder.js:347:50\r\n```\r\n\r\nI created a gist with my Nuxt config: https://gist.github.com/martinrisseeuw/e1ffea12757710c4ff94ef1d95f5cf4b\r\n\r\nDo you maybe have a solution or workaround that I can use the module?\n\n<!--cmty--><!--cmty_prevent_hook-->\n<div align=\"right\"><sub><em>This question is available on <a href=\"https://nuxtjs.cmty.io\">Nuxt.js</a> community (<a href=\"https://nuxtjs.cmty.io/nuxt-community/nuxt-i18n/issues/c25\">#c25</a>)</em></sub></div>"},"comment":{"url":"https://api.github.com/repos/nuxt-community/nuxt-i18n/issues/comments/376478837","html_url":"https://github.com/nuxt-community/nuxt-i18n/issues/52#issuecomment-376478837","issue_url":"https://api.github.com/repos/nuxt-community/nuxt-i18n/issues/52","id":376478837,"user":{"login":"martinrisseeuw","id":8780559,"avatar_url":"https://avatars2.githubusercontent.com/u/8780559?v=4","gravatar_id":"","url":"https://api.github.com/users/martinrisseeuw","html_url":"https://github.com/martinrisseeuw","followers_url":"https://api.github.com/users/martinrisseeuw/followers","following_url":"https://api.github.com/users/martinrisseeuw/following{/other_user}","gists_url":"https://api.github.com/users/martinrisseeuw/gists{/gist_id}","starred_url":"https://api.github.com/users/martinrisseeuw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinrisseeuw/subscriptions","organizations_url":"https://api.github.com/users/martinrisseeuw/orgs","repos_url":"https://api.github.com/users/martinrisseeuw/repos","events_url":"https://api.github.com/users/martinrisseeuw/events{/privacy}","received_events_url":"https://api.github.com/users/martinrisseeuw/received_events","type":"User","site_admin":false},"created_at":"2018-03-27T10:39:38Z","updated_at":"2018-03-27T10:39:38Z","author_association":"NONE","body":"@paulgv Great it works. Thanks a lot!"}}
{"actor":{"display_login":"martinrisseeuw"}}