javascript - Translated URL with react router -


i use react router in isomorphic react project, have working router wondering how translate urls , use same handler.

for example :

/en/user => handler usercomponent

/fr/utilisateur => handler usercomponent

i read lot of documentation , solution found make 3 blocks of routes think should exist better solution.

thanks !


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

android - How to create dynamically Fragment pager adapter -