Skip to content

TimeSpan Humanize ignored toWords: false parameter #1444

@BloodShadow174

Description

@BloodShadow174

When executing the code:

var oneDay = TimeSpan.FromDays(1);

oneDay.Humanize(
    culture: CultureInfo.GetCultureInfo("ru"),
    toWords: false
);

Result:
"один день"
Instead of the expected result:
"1 день"

This result is not only in Russian localization, but also in many others!
I think that you still need to take into account the toWords parameter with a single value, most likely you can fix it here:

P.S. Congratulations to everyone on the fact that the library has begun to be updated again 🥰

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions