Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CultureNotFoundException ("ku") on Windows / .NET 4.7.2 #1064

Closed
TimSirmovics opened this issue May 3, 2021 · 1 comment · Fixed by #1065
Closed

CultureNotFoundException ("ku") on Windows / .NET 4.7.2 #1064

TimSirmovics opened this issue May 3, 2021 · 1 comment · Fixed by #1065

Comments

@TimSirmovics
Copy link

After updating to 2.9.9 we are getting the following exception.

System.TypeInitializationException: The type initializer for 'Humanizer.Configuration.Configurator' threw an exception. ---> System.Globalization.CultureNotFoundException: Culture is not supported.
Parameter name: name
ku is an invalid culture identifier.
   at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)
   at Humanizer.Configuration.FormatterRegistry..ctor() in /_/src/Humanizer/Configuration/FormatterRegistry.cs:line 24
   at Humanizer.Configuration.Configurator..cctor() in /_/src/Humanizer/Configuration/Configurator.cs:line 28
   --- End of inner exception stack trace ---
   at Humanizer.Configuration.Configurator.get_CollectionFormatters() in /_/src/Humanizer/Configuration/Configurator.cs:line 25
   at Humanizer.CollectionHumanizeExtensions.Humanize[T](IEnumerable`1 collection) in /_/src/Humanizer/CollectionHumanizeExtensions.cs:line 19
@hangy
Copy link
Contributor

hangy commented May 4, 2021

If you're on Win 7, Xamarin, or iOS, this is probably a duplicate of #1059 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants