diff --git a/src/Humanizer/Localisation/NumberToWords/AfrikaansNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/AfrikaansNumberToWordsConverter.cs index 582de8615..81b403cc9 100644 --- a/src/Humanizer/Localisation/NumberToWords/AfrikaansNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/AfrikaansNumberToWordsConverter.cs @@ -90,7 +90,7 @@ string Convert(int number, bool isOrdinal) var lastPart = TensMap[number / 10]; if (number % 10 > 0) { - lastPart = $"{GetUnitValue(number % 10, false)} en {(isOrdinal ? GetUnitValue(lastPartValue, isOrdinal) : lastPart)}"; + lastPart = $"{GetUnitValue(number % 10, false)} en {(isOrdinal ? GetUnitValue(lastPartValue, true) : lastPart)}"; } else if (number % 10 == 0) { diff --git a/src/Humanizer/Localisation/NumberToWords/FinnishNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/FinnishNumberToWordsConverter.cs index b183b1392..ebff81760 100644 --- a/src/Humanizer/Localisation/NumberToWords/FinnishNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/FinnishNumberToWordsConverter.cs @@ -67,7 +67,7 @@ public override string Convert(long input) number %= 100; } - if (number >= 20 && number / 10 > 0) + if (number >= 20) { parts.Add($"{Convert(number / 10)}kymmentä"); number %= 10; @@ -128,7 +128,7 @@ static string ToOrdinal(int number, bool useExceptions) number %= 100; } - if (number >= 20 && number / 10 > 0) + if (number >= 20) { parts.Add($"{ToOrdinal(number / 10, true)}kymmenes"); number %= 10; diff --git a/src/Humanizer/Localisation/NumberToWords/SwedishNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/SwedishNumberToWordsConverter.cs index 8837479c1..2f66bd0f2 100644 --- a/src/Humanizer/Localisation/NumberToWords/SwedishNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/SwedishNumberToWordsConverter.cs @@ -188,7 +188,7 @@ public override string ConvertToOrdinal(int number) } // suffix -de/-te - if (divided > 0 && number % m.Value == 0) + if (number % m.Value == 0) { switch (number) { diff --git a/src/Humanizer/TimeSpanHumanizeExtensions.cs b/src/Humanizer/TimeSpanHumanizeExtensions.cs index 614d6d7af..d1057a085 100644 --- a/src/Humanizer/TimeSpanHumanizeExtensions.cs +++ b/src/Humanizer/TimeSpanHumanizeExtensions.cs @@ -63,7 +63,7 @@ static IEnumerable CreateTheTimePartsWithUpperAndLowerLimits(TimeSpan ti if (IsContainingOnlyNullValue(timeParts)) { var noTimeValueCultureFormatted = toWords ? cultureFormatter.TimeSpanHumanize_Zero() - : cultureFormatter.TimeSpanHumanize(minUnit, 0, toWords); + : cultureFormatter.TimeSpanHumanize(minUnit, 0); timeParts = CreateTimePartsWithNoTimeValue(noTimeValueCultureFormatted); } return timeParts;