Skip to content

fix: Locale ignored if precision is set #373

Closed

Description

@arildm

Summary

When the precision option is used, the localization is broken.

Reproduction

  1. filesize(1234, { locale: "sv", precision: 2 })

Expected Behavior

1,2 kB

Actual Behavior

1.2 kB

Environment

  • Node.js version: 24.16.0
  • OS: Ubuntu 26.04
  • filesize.js version: 11.0.26

Code Sample

filesize(1234, { locale: "sv", precision: 2 })

Additional Context

Activity

  1. avoidwork commented on Oct 21, 2026

    @avoidwork
    Owner

    Fixed in #376.

  2. avoidwork commented on Oct 21, 2026

    @avoidwork
    Owner

    This is 11.10.28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions