Skip to content

CultureInfo.GetCultures missing in .NET Core #14558

@DamianEdwards

Description

@DamianEdwards

We're currently building out the support for language resources and i18n/l10n in ASP.NET 5/DNX and we're wondering why there doesn't appear to be a way to retrieve a list of all available cultures in .NET Core. Right now it appears our only option for determining if a culture string is valid is to attempt to create a CultureInfo object from it using the CultureInfo(string name) ctor, and catching the resulting CultureNotFoundException if it's indeed invalid. This feels sub-optimal.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions