Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

current culture of request in a view

How can I acquire the CultureInfo of a request in a View?

like image 418
Trimack Avatar asked Jan 18 '11 13:01

Trimack


2 Answers

CultureInfo.CurrentCulture will return the culture for the thread currently processing the request. This is also accessible through System.Threading.Thread.CurrentCulture. Are you having a specific issue?

like image 125
Matthew Abbott Avatar answered Oct 13 '22 03:10

Matthew Abbott


you can get CultureInfo by System.Threading.Thread.CurrentThread.CurrentCulture

like image 28
Waqas Raja Avatar answered Oct 13 '22 03:10

Waqas Raja