Skip to content

TimeSpan.Humanize() Not Localized for fi-FI Culture #1650

@dev-ziane

Description

@dev-ziane

Hi!
I noticed TimeSpan.Humanize() does not produce Finnish output when using the fi-FI culture. Instead, it falls back to English, even though the Humanizer.Core.fi-FI localization package is installed and loaded.

Environment:

  • Package: Humanizer / Humanizer.Core.fi-FI
  • Version: 2.14.1
  • Platform: .NET 8

For example:

`[Fact]
public void OneHour()
{
var culture = new CultureInfo("fi-FI");
var oneHour = TimeSpan.FromHours(1);

var result = oneHour.Humanize(culture: culture);

result.Should().Be("1 tunti");

}`

Expected result to be "1 tunti", but "1 hour".

It looks like the Finnish localization might be missing or incomplete for TimeSpan/duration strings. Could this be checked?

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