Skip to content

Bosnian fractional values select the wrong plural category #7618

Closed

Description

@vera-rubin

Which package?

@formatjs/intl-pluralrules

Describe the bug

We get other for Bosnian 0.1 with default @formatjs/intl-pluralrules options.

To Reproduce

Reproducible Steps/Repo

npm install --ignore-scripts @formatjs/[email protected]
node --input-type=module <<'JS'
import '@formatjs/intl-pluralrules/polyfill-force.js'
import '@formatjs/intl-pluralrules/locale-data/bs.js'
console.log(new Intl.PluralRules('bs').select(0.1))
JS

Expected behavior

We get other through this selection path.
The CLDR 48.2 rule requires one.

Desktop (please complete the following information):

Version — @formatjs/intl-pluralrules 6.3.15, commit 5d7d9967e25d0991dbb5bac1563fb2adc6fe4a3f, Node 24.21.0, pnpm 12.9.1, Bazel 9.2.0, Linux x86_64.

Additional context

The fraction slice includes the dot, rebuilding 0.1 as 0.0.1.
We have a fix with regression tests ready.

— ChipLab

Activity

  1. longlho commented on Oct 15, 2026

    @longlho
    Member

    PR's welcome

  2. added a commit that references this issue on Oct 16, 2026
    1f5f78d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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