Skip to content

Create a strategy that is using MVC routes to set language #8

@Carl-Hugo

Description

@Carl-Hugo

It should be easy to create an application with URL looking like: /en-US/whatever/else/here that gets localized automatically.

The strategy should be enabled by default and should be easy to opt-out.


First, take a look at the existing providers: Globalization and localization in ASP.NET Core | Implement a strategy to select the language/culture for each request and their implementations.


See also RouteDataRequestCultureProvider.cs to see if that could do the trick (maybe with this and adding a route).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions