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

Problem:

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

Solution:

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

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

Explanation:

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