-
Notifications
You must be signed in to change notification settings - Fork 967
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 Xamarin for Android #1059
Comments
Same on iOS with 2.9.9. |
This should be reported to Android. This package is simply providing resources, issues with languages beyond what the runtime supports are the runtime's bug. |
I'm seeing the same error on Windows 7:
While "This should be reported to somebody else" sounds cool, because indeed Windows 7 is lacking the language, I don't believe it solves the problem. Should I fix the Humanizer version to |
@clairernovotny that is interesting. This is also on iOS and I'm not using the ku culture. Besides that, it does not happen in 2.8.26. |
The interesting part of my stacktrace looks like that:
The problem is not with the consumer trying to use the I don't know Humanizer code well enough, but to me it looks like As it is right now, the Humanizer |
Hi @clairernovotny thanks for fixing this issue. I guess this bug was a result of: Do I understand it correctly that all the number to word converters get registered even if you don't want to support all those locales? Since I didn't register nor used "ku" anywhere. Is that intentional? And can it be avoided? |
Those converters are in the static init and cannot be avoided. I'll get this fix published in the next day or two. |
Thanks |
When trying to run Humanizer 2.9.9 embedded into .NET Standard 2.0 library used by the Xamarin.Forms app running on Android I got the exception:
As I understand the culture "ku" (Kurdish?) is not supported on Xamarin.Android and this is why I got the error, but I even not wanted to use "ku", but run a code like:
The same app runs fine with Xamarin.Forms on UWP.
Should this issue be forwarded to Xamarin.Android (please add "ku" culture support), or maybe there should be a check and if a culture is not supported on the target platform, it should be discarded?
(workaround is to use 2.8.26 temporarily, as Kurdish support was added in #1044)
The text was updated successfully, but these errors were encountered: