I can't view my localized values of my MVC application


I have changed the language of my browser but I am still only getting me default resources.


Add the following line to your web.config as a child of the system.web element.

<globalization enableClientBasedCulture="true" uiCulture="auto" culture="auto"/>


While working on an ASP.NET MVC application I wanted to test my localized resource files.  From the options of my browser I updated the language.  However, when I viewed the page I continued to see the default values.  Not until I added the globalization element to me web.config did my browser load the correct resources.

Comments are closed