RouteLocalization icon indicating copy to clipboard operation
RouteLocalization copied to clipboard

RouteLocalization is an MVC and Web API package that allows localization of your attribute routes.

Looking for the ASP.NET Core version?

Go to the aspnet core repository.

The addon for simple route localization

RouteLocalization is a lightweight extension for Asp.Net Mvc / Web Api attribute routing to enable simple route localization.

It can be installed via Nuget:

What can RouteLocalization do for you?

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

Where to start?

Read the Getting Started document section.

Examine the sample projects:

  • ASP.NET MVC
  • ASP.NET Web API

Documentation

  • Getting Started
  • Selecting and Translating Routes
  • The Configuration Class
  • Link Generation