Reputation: 6786
Straight forward question really, What is the equivalent of CultureInfo.GetCultures
is .NET Core?
Just trying to find a way to enumerate available cultures.
Just to clarify, this isn't the same as GetCultureInfo
as that only gets a specified culture, (i.e. does not enumerate it)
Upvotes: 0
Views: 1206
Reputation: 100543
There isn't a good way to enumerate all supported cultures in .NET Core < 2.0. In .NET Core 2.0 the respective queries to the underlying localisation systems have been implemented for windows and *nix, making this API available.
Upvotes: 2