Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get current language in C#

In Composite C1 I need to fetch the currently selected language, that the user selected over the language switcher package in an ASP.NET user control.

Of course I could read it from the PathInfo, but I bet there is a function for this.

How can I access the value programmatically in C#?

like image 533
magnattic Avatar asked Dec 15 '11 16:12

magnattic


Video Answer


1 Answers

Pure vanilla c#

CultureInfo.CurrentCulture

http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.currentculture.aspx

like image 94
Pauli Østerø Avatar answered Oct 14 '22 02:10

Pauli Østerø