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

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

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -