Get current language in CultureInfo

Sharpeye500 picture Sharpeye500 · Nov 17, 2010 · Viewed 103.1k times · Source

How to identify the operating system's language using CultureInfo? E.g. if the language in Windows is set to French, I need to identify French and load the fr resource files data.

Answer

Brosto picture Brosto · Nov 17, 2010

I think something like this would give you the current CultureInfo:

CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture;

Is that what you're looking for?