{"action":"created","issue":{"url":"https://api.github.com/repos/reactjs/react-router/issues/3088","repository_url":"https://api.github.com/repos/reactjs/react-router","labels_url":"https://api.github.com/repos/reactjs/react-router/issues/3088/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/react-router/issues/3088/comments","events_url":"https://api.github.com/repos/reactjs/react-router/issues/3088/events","html_url":"https://github.com/reactjs/react-router/issues/3088","id":134145617,"number":3088,"title":"Custom Props or how do I do this?","user":{"login":"collinglass","id":3614712,"avatar_url":"https://avatars.githubusercontent.com/u/3614712?v=3","gravatar_id":"","url":"https://api.github.com/users/collinglass","html_url":"https://github.com/collinglass","followers_url":"https://api.github.com/users/collinglass/followers","following_url":"https://api.github.com/users/collinglass/following{/other_user}","gists_url":"https://api.github.com/users/collinglass/gists{/gist_id}","starred_url":"https://api.github.com/users/collinglass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/collinglass/subscriptions","organizations_url":"https://api.github.com/users/collinglass/orgs","repos_url":"https://api.github.com/users/collinglass/repos","events_url":"https://api.github.com/users/collinglass/events{/privacy}","received_events_url":"https://api.github.com/users/collinglass/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-17T01:10:10Z","updated_at":"2016-02-20T18:18:04Z","closed_at":"2016-02-17T01:10:37Z","body":"I have a multilanguage site that uses url for determining language.\r\n\r\nEnglish:\r\nHOST/games/ \r\n\r\nSpanish:\r\nHOST/juegos/\r\n\r\nRomanian (default):\r\nHOST/\r\n\r\nRight now I declare my routes like so:\r\n\r\n```\r\n<Route path=\"/(:lang/)\" component={App}>\r\n        <Route path=\"search/:search\" component={Search}/>\r\n        <Route path=\"category/:title/(:page/)\" component={Category}/>\r\n        <Route path=\"game/:title\" component={Game}/>\r\n        <Route path=\"login\" component={Login}/>\r\n        <Route path=\"signup\" component={Signup}/>\r\n\r\n        { /* es */ }\r\n        <Route path=\"categoria/:title/(:page/)\" component={Category}/>\r\n        <Route path=\"juego/:title\" component={Game}/>\r\n        ...\r\n</Route>\r\n```\r\n\r\nThis works fines, but it allows for someone to go to HOST/games/categoria/:title and it'll work when it shouldn't. \r\n\r\nI envision being able to do the following:\r\n\r\n```\r\n<Route>\r\n<Route lang=\"en\" path=\"/games/\" component={App}>\r\n        <Route path=\"category/:title/(:page/)\" component={Category}/>\r\n        <Route path=\"game/:title\" component={Game}/>\r\n        ...\r\n</Route>\r\n<Route lang=\"es\" path=\"/juegos/\" component={App}>\r\n        <Route path=\"categoria/:title/(:page/)\" component={Category}/>\r\n        <Route path=\"juego/:title\" component={Game}/>\r\n        ...\r\n</Route>\r\n...\r\n</Route>\r\n```\r\n\r\nIs there any way to pass custom props?\r\n"},"comment":{"url":"https://api.github.com/repos/reactjs/react-router/issues/comments/186661857","html_url":"https://github.com/reactjs/react-router/issues/3088#issuecomment-186661857","issue_url":"https://api.github.com/repos/reactjs/react-router/issues/3088","id":186661857,"user":{"login":"sylvaindethier","id":379351,"avatar_url":"https://avatars.githubusercontent.com/u/379351?v=3","gravatar_id":"","url":"https://api.github.com/users/sylvaindethier","html_url":"https://github.com/sylvaindethier","followers_url":"https://api.github.com/users/sylvaindethier/followers","following_url":"https://api.github.com/users/sylvaindethier/following{/other_user}","gists_url":"https://api.github.com/users/sylvaindethier/gists{/gist_id}","starred_url":"https://api.github.com/users/sylvaindethier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylvaindethier/subscriptions","organizations_url":"https://api.github.com/users/sylvaindethier/orgs","repos_url":"https://api.github.com/users/sylvaindethier/repos","events_url":"https://api.github.com/users/sylvaindethier/events{/privacy}","received_events_url":"https://api.github.com/users/sylvaindethier/received_events","type":"User","site_admin":false},"created_at":"2016-02-20T18:18:04Z","updated_at":"2016-02-20T18:18:04Z","body":"@collinglass i've just answered your question on [stackoverflow](https://stackoverflow.com/questions/35446165/react-router-custom-props-or-how-do-i-do-this#35527112)\r\nHave a look at [react-custom-props](https://github.com/sylvaindethier/react-custom-props), it may help."}}