Skip to content

Buggy behavior caused by few comparison in plural variants #545

@crqch

Description

@crqch

Checklist

  • I have searched for existing issues to avoid duplicates.
  • The bug is reproducible in the latest version of Paraglide JS.
  • I am willing to submit a pull request for this issue.

Describe the Bug

ParaglideJS as described per the documentation, uses Intl.PluralRules for determining the plural form. That api can return zero, one, two, few, many, or other.

When I attempted to use specifically few directive, I have stumbled upon a weird bug where other comparison have stopped working, however few does work.

What's the expected result?

other comparison and others should work when using few comparison in plural variants.

Link to Minimal Reproducible Example

https://github.com/crqch/paraglidejs-plural-issue

Additional Information

No response

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