DmitrySikorsky / AspNetCoreCultureRouteParameter

ASP.NET Core culture route parameter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ASP.NET Core Culture Route Parameter

This is a demo web application for the “ASP.NET Core Culture Route Parameter” post on the Dmitry Sikorsky’s blog. It shows how to specify culture as the URL segment using the route parameter by overriding the DetermineProviderCultureResult method of the RequestCultureProvider class.

The result looks like this: ASP.NET Core Culture Route Parameter ASP.NET Core Culture Route Parameter

Using the Application

  1. Run the application.
  2. Change the culture segment in the URL.
  3. Check the current culture and the UI culture in the view.

About

ASP.NET Core culture route parameter

License:Other


Languages

Language:C# 78.9%Language:HTML 21.1%