RouteLocalization is a lightweight extension for Asp.Net Mvc / Web Api attribute routing to enable simple route localization.
It can be installed via Nuget:
- ASP.NET MVC: RouteLocalization.Mvc
- ASP.NET Web API: RouteLocalization.WebApi
RouteLocalization has the following features:
- Allows localization of your attribute routes with fluent interfaces
- Localized routes are culture sensitive - that means if you request an english route, the thread culture is set to "en", if you request a german route it is set to "de", etc.
- Link generation is culture sensitive too - if you generate a link for a specific action the corresponding translated version for this url is generated, if existing
Read the Getting Started document section.
Examine the sample projects: