Skip to content

[Intl/MessageFormatter] Pick the first matching selector, like intl - #725

Merged
nicolas-grekas merged 1 commit into
1.xfrom
intl-messageformatter-first-selector
Oct 28, 2026
Merged

nicolas-grekas merged 1 commit into
1.xfrom
intl-messageformatter-first-selector

Conversation

@nicolas-grekas

Copy link
Copy Markdown
Member
Q A
Branch? 1.x
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

Follow up to #723, as asked by @stof.

When a select, plural or selectordinal argument uses the same selector twice, the polyfill now picks the first matching one, like intl does. It used to pick the last one.

@nicolas-grekas
nicolas-grekas merged commit 85f6212 into 1.x Oct 28, 2026
40 checks passed
@nicolas-grekas
nicolas-grekas deleted the intl-messageformatter-first-selector branch October 28, 2026 09:59
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.

2 participants