Set Default Culture in Optimizely CMS 12
In Optimizely CMS 11 you can set the default culture and UI culture like this in web.config.
<globalization culture="no" uiCulture="no" />
For Optimizely CMS 12 you could put this in Startup.cs or Program.cs like this.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("no");
CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo("no"); ;
}
This will affect culture-specific operations like date, time and decimal number formatting.
That's it!
Found this post helpful? Help keep this blog ad-free by buying me a coffee! ☕