#1,120 – Getting a List of All Supported Cultures
July 23, 2014 1 Comment
You can get a full list of all cultures supported by .NET using the CultureInfo.GetCultures static method. (In System.Globalization namespace).
Below is a code sample that dumps out a little bit of information about all known cultures.
CultureInfo[] cultureList = CultureInfo.GetCultures(CultureTypes.AllCultures); foreach (CultureInfo ci in cultureList.OrderBy(cult => cult.Name)) { if (ci.IsNeutralCulture) Console.WriteLine("{0} (neutral) - {1}", ci.Name, ci.EnglishName); else Console.WriteLine("{0} - {1}", ci.Name, ci.EnglishName); }