I am facing a problem. I would like to localize my action names in my project so french people can have clean urls with french names.
http://www.test.com/Home should be http://www.test.com/Accueil
It is a good thing too for google indexing. Moreover I would like to be Restful on the application, so I would like too keep english name because developers (even frenchies) prefer to work on english names.
I don’t know if it’s possible and how.
My first idea should be something like get the browser language, assign it to the CurrentThread.CurrentCulture, so I can select the view name I want.
Thank you very much for your answers.
you can do this when you register the routes in global.asax.
if normally you have this:
you could make this one too (I don’t know french, sorry)
you could either make them all available globally or have separate:
you’d have to make the decision at application startup though (you may or may not be able to register routes at runtime.)