Skip to content

Add a boolean to force lowercase routing #24

@saaratrix

Description

@saaratrix

Add a boolean to the LocalizedRouteConvention when it generates the routes to force lowercase routing.
Also could add one to force PascalCase or other options maybe?

For example if we want to force lowercase

[LocalizationRoute("fi", "koti")]
public class HomeController {

  [LocalizationRoute("fi", "Meistä")]
  public void About () {}
}

Currently the routes generated would be

default: Home/About
finnish: fi/koti/Meistä

If we'd force the lowercase the routing convention would generate the template in lowercase.
So we'd get this:

default: home/about
finnish: fi/koti/meistä

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions