[Archived] ASP.NET Core MVC is a model view controller framework for building dynamic web sites with clean separation of concerns, including the merged MVC, Web API, and Web Pages w/ Razor. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
5.62k
stars
2.14k
forks
source link
RazorPages do not respect the RequestCultureProviders from RequestLocalizationOptions #8759
When you navigate to the endpoint http://localhost:5000/?locale=es it should have accepted the locale "es", but it doesn't work, on the other hand, if you visit http://localhost:5000/?culture=es it does work, it feels like is ignoring the custom RequestCultureProviders I have defined while configuring the options.
Version of Microsoft.AspNetCore.Mvc or Microsoft.AspNetCore.App or Microsoft.AspNetCore.All:
Is this a Bug or Feature request?:
Bug
Steps to reproduce (preferably a link to a GitHub repo with a repro project):
https://github.com/wilsonrivera/localized-razor-pages
Description of the problem:
When you navigate to the endpoint
http://localhost:5000/?locale=es
it should have accepted the locale "es", but it doesn't work, on the other hand, if you visithttp://localhost:5000/?culture=es
it does work, it feels like is ignoring the customRequestCultureProviders
I have defined while configuring the options.Version of
Microsoft.AspNetCore.Mvc
orMicrosoft.AspNetCore.App
orMicrosoft.AspNetCore.All
:Version
2.2.0-preview3-35497