Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

cultureInfo

$
0
0

Hi,

how / where can I globally set cultureinfo. I can set in action. but I want to set globally 

in startup or ? 

//var cultureInfo = new CultureInfo("en-US");

var cultureInfo = (string)RouteData.DataTokens["Name"];
CultureInfo.DefaultThreadCurrentCulture = cultureInfo;
CultureInfo.DefaultThreadCurrentUICulture = cultureInfo;


Viewing all articles
Browse latest Browse all 9386

Trending Articles