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

1111. appearing after print sequence - php -

node.js - Express and Redis - If session exists for this user, don't allow access -

excel - I can't get the attachement of the email PHP -