I would like to set the <globalization culture="auto" uiCulture="auto" in web.config so that the cultureinfo is based on the users language preferences in the browser and not the current language in EPiServer.
For now no matter what I set the culture and uiCulture to in web.config the CultureInfo.CurrentCulture always returns en-US.
Can this be done? How come setting the culture & uiCulture to auto does not work?
From the tech note "Globalization" (which can be found under the Documentation tab):
"If the web.config setting pageUseBrowserLanguagePreferences is true, then the language preference from the Web browser is used"
Setting the pageUseBrowserLanguagePreferences=true does the trick as long as you are in View mode. As soon as I enter edit mode it switches back to en-US
Thank you for replying.
I tested this and it works fine for me in edit mode. You need to ensure that the users language setting is set to "Use system language" as the user language has a higher priority than the browser language(s) in the UI if defined.
RegardsLinus EkströmEPiServer Development Team