Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Localization Not Working in Chrome

We are developing the multilingual application. Somehow we are facing issues with Chrome browser. Here are the language settings that i have made in chrome i have even moved the language to top of the list. enter image description here

Here are the settings in the web.config enter image description here

When i debug it the current culture is returned as Sweden but the text from sweden resx is not retrieved.

enter image description here

if i force the uiCulture in the web.config to be "sv-SE" it works. But in the "auto" mode it doesnt work.

Here are the properties of the resx file. enter image description here

Please suggest what am i missing here in order to make it work.

like image 701
Sachin Trivedi Avatar asked Aug 08 '26 03:08

Sachin Trivedi


1 Answers

I am posting this as a solution just because it worked for me. I just had to rename my resx file from

LocalisedText.es-ES.resx to LocalisedText.es.resx

And this worked for me across all the browsers.

like image 135
Sachin Trivedi Avatar answered Aug 09 '26 16:08

Sachin Trivedi