From 16a68162f47d76f28757438382982ae983bb4125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Boro=C5=A1ak?= Date: Thu, 27 Jan 2022 15:51:57 +0100 Subject: [PATCH] Fixed The resource object with key 'DateHumanize_MultipleDaysAgo' was not found for "hr" culture Added DateHumanize_MultipleDaysAgo_DualTrialQuadral resource key Updated DaysAgo tests to verify the fix is valid --- .../Localisation/hr/DateHumanizeTests.cs | 5 +++++ src/Humanizer/Properties/Resources.hr.resx | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/Humanizer.Tests.Shared/Localisation/hr/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/hr/DateHumanizeTests.cs index d07e3c2d5..75f4c2c53 100644 --- a/src/Humanizer.Tests.Shared/Localisation/hr/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/hr/DateHumanizeTests.cs @@ -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) { diff --git a/src/Humanizer/Properties/Resources.hr.resx b/src/Humanizer/Properties/Resources.hr.resx index 0c9ff334c..3b4622673 100644 --- a/src/Humanizer/Properties/Resources.hr.resx +++ b/src/Humanizer/Properties/Resources.hr.resx @@ -297,4 +297,7 @@ 1 godina + + prije {0} dana + \ No newline at end of file