Is it possible to get the value UK (or the equivalent value for another country) from C# CultureInfo object? My example below shows I currently get "United Kingdon" using the following line of code.
var region = new RegionInfo(CultureInfo.CurrentCulture.LCID)
Update the comments
After receiving really great help I want to clarify my problem. I need to provide the value "UK" based on the locale settings. I currently have the following values
locale_country: "United Kingdom" // This needs to be UK (or the equivalent for another country)
locale_language: "en-GB"
locale_region: "GB"
The code that generates this is illustrated below (C#)
Code snippet
var localRegion = new RegionInfo(CultureInfo.CurrentCulture.LCID);
LocaleRegion = localRegion.TwoLetterISORegionName,
LocaleCountry = localRegion.DisplayName