9

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#?

magnattic
  • 12,638
  • 13
  • 62
  • 115

1 Answers1

17

Pure vanilla c#

CultureInfo.CurrentCulture

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

Pauli Østerø
  • 6,878
  • 2
  • 31
  • 48