Skip to content

[6.x] Show single number for one-item pagination range#14657

Open
jasonvarga wants to merge 2 commits into
6.xfrom
swift-labrador
Open

[6.x] Show single number for one-item pagination range#14657
jasonvarga wants to merge 2 commits into
6.xfrom
swift-labrador

Conversation

@jasonvarga
Copy link
Copy Markdown
Member

When a paginated listing has only one item, the totals read ~1 of 1 because Intl.NumberFormat.formatRange() prefixes equal start/end values with an "approximately" sign.

Now when from and to are equal, the range is formatted as a single number instead, producing 1 of 1.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant