AspNetCore.Docs
AspNetCore.Docs copied to clipboard
Not a word about RouteDataRequestCultureProvider!
Description
There is no word about RouteDataRequestCultureProvider, nor an example.
Please provide a full documentation and example on a scenario when pages without {lang?} route (/Index) are served using the default culture set in page model, and pages with {lang?} set (like /ru/Index) use the culture provided in the URL.
Page URL
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/localization?view=aspnetcore-8.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/localization.md
Document ID
ad989395-3f49-4d55-521e-cf6fe56281ee
Article author
@Rick-Anderson
I'll be adding a link to https://andrewlock.net/applying-the-routedatarequest-cultureprovider-globally-with-middleware-as-filters/