We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
My repro is using PowerShell, but there is a null reference exception when the number of days is > 1 and the culture is hr.
hr
#32 PS> [Humanizer.TimeSpanHumanizeExtensions]::Humanize([timespan]::new(1,1,1,1,1), 5, [CultureInfo]'hr') 1 dan, 1 sat, 1 minuta, 1 sekunda, 1 milisekunda #33 PS> [Humanizer.TimeSpanHumanizeExtensions]::Humanize([timespan]::new(2,1,1,1,1), 5, [CultureInfo]'hr') Exception calling "Humanize" with "3" argument(s): "Value cannot be null. Parameter name: format" At line:1 char:1 + [Humanizer.TimeSpanHumanizeExtensions]::Humanize([timespan]::new(2,1, ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentNullException
The text was updated successfully, but these errors were encountered:
Interesting. There seem to be some special resources for different plurals in the Croatian language (see
Humanizer/src/Humanizer/Localisation/Formatters/CroatianFormatter.cs
Line 5 in a204909
TimeSpanHumanize_MultipleDays
null
string.Format
Sorry, something went wrong.
I don't know Croatian. I found this experimenting with all possible languages to help produce this comment: PowerShell/PowerShell#2689 (comment)
No branches or pull requests
My repro is using PowerShell, but there is a null reference exception when the number of days is > 1 and the culture is
hr
.The text was updated successfully, but these errors were encountered: