I’d like to fully localize my ASP.NET MVC application, and while there are many articles that deal with the various pitfalls of ASP.NET MVC localization, none of them deals with an aspect that I want to deal with, and that is the localization of URLs, including the controller names and actions.
I would like a way to specify the strings that should appear instead of the controller name and action name in the URL, for example in a resource file.
How is this doable in a sane way? Thanks in advance for your help!
EDIT:
I’m still looking for a way to do this. Any help would be welcome.
Is there any framework or lib implementing this already?
I’ve never done this before, but couldn’t you add an entry to the routes table for every language you want to support? All of the localized routes could redirect to the route in the language of your choice. Check out these related questions:
Multi-lingual websites with ASP.NET MVC
How should I implement localization with ASP.NET MVC routes?