-
Notifications
You must be signed in to change notification settings - Fork 946
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
ArgumentException with locale sk_SK when only Humanizr.Core is installed #690
Comments
If that's the case, then I'm guessing there's a Xamarin/Mono bug with resource fallbacks to the neutral (en-us) culture. In general, I would always recommend using |
Same issue here for Xamarin.Forms. Humanizer package is installed to .NET Standard and iOS/Android projects. But some users get the
|
I have one report from the field with this exception. I only have the Humanizer.Core including some other localized packages. Report happened from a phone configured for Polish which is not part of my included packages. |
I got same problem with .NET Core 3.1, reproducing easily enough with some DateTime values and Humanize(utcDate: false). Computer culture Russian and installed packages are: Humanizer.Core 2.8.26 and Humanizer.Core.ja 2.8.26 . |
I can concur. Have the same problem with Polish translation. Xamarin on Android. Previously I did use Humanizer.Core 2.8.26 + Humanizer.Core.pl 2.8.26 There was an exception thrown. I've changed to Humanizer 2.8.26 - the problem still occurs. I am using Xamarin Android (Andorid 9.0 (Api Level 28 - Pie)) with library as .NET Core 2.1 I am using |
Just had the same – or similar – error thrown in my ASP.NET Core application. What's weird, is that it was perfectly fine just a minute ago, but restarting the app caused the error to star occurring. Edit: using
|
We are experiencing the same issue in xamarin forms for Polish language. Only Android - IOS works fine. Is there any possible way to fix this? |
This issue is external as it has to do with resource localization/fallback. Please open an issue on https://github.com/dotnet/runtime (and feel free to link back to here/reference here). |
so, @clairernovotny there is no way to fix it for Android? |
My workaround is calling |
Originally posted by @amis92 in #776 (comment) |
Related to #647.
I'm hitting the issue on a Xamarin.iOS / Xamarin.Android app that only has the
Humanizer.Core
package installed. It is crashing for a user whose locale is sk_SK.Exception:
ArgumentException: The resource object with key 'DateHumanize_MultipleHoursAgo' was not found
.Stacktrace:
I can also confirm adding the
Humanizer
package solves the issue.The text was updated successfully, but these errors were encountered: