Skip to content

Commit

Permalink
Fixed The resource object with key 'DateHumanize_MultipleDaysAgo' was…
Browse files Browse the repository at this point in the history
… not found for "hr" culture

Added DateHumanize_MultipleDaysAgo_DualTrialQuadral resource key
Updated DaysAgo tests to verify the fix is valid
  • Loading branch information
rborosak committed Jan 27, 2022
1 parent 000cf88 commit 16a6816
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,13 @@ public void MonthsFromNow(int months, string expected)
}

[Theory]
[InlineData(-24, "prije 24 dana")]
[InlineData(-22, "prije 22 dana")]
[InlineData(-10, "prije 10 dana")]
[InlineData(-5, "prije 5 dana")]
[InlineData(-4, "prije 4 dana")]
[InlineData(-3, "prije 3 dana")]
[InlineData(-2, "prije 2 dana")]
[InlineData(-1, "jučer")]
public void DaysAgo(int days, string expected)
{
Expand Down
3 changes: 3 additions & 0 deletions src/Humanizer/Properties/Resources.hr.resx
Original file line number Diff line number Diff line change
Expand Up @@ -297,4 +297,7 @@
<data name="TimeSpanHumanize_SingleYear" xml:space="preserve">
<value>1 godina</value>
</data>
<data name="DateHumanize_MultipleDaysAgo_DualTrialQuadral" xml:space="preserve">
<value>prije {0} dana</value>
</data>
</root>

0 comments on commit 16a6816

Please sign in to comment.