Skip to content

Conversation

@eemeli
Copy link
Collaborator

@eemeli eemeli commented Jan 27, 2025

As discussed today, we should leave out selection from :currency and :unit for now, as it's not clear that data is available to select correct plural values for them. For example, consider how the English phrase "$3 is your total price" refers to the currency value in the singular.

If/once selection on these values is better defined, we should consider adding support for that in MF2.

Where necessary, plural selection on the numerical values of currencies and unitized values is still possible via :number and :integer, which do support selection.

@eemeli eemeli added functions Issue pertains to the default function set LDML47 labels Jan 27, 2025
Copy link
Member

@sffc sffc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If something doesn't work even in English, then it most likely is even worse in other languages. This is also a compelling reason to keep these functions separate from :number. Thank you.

@aphillips aphillips merged commit 4ee183f into main Feb 3, 2025
2 checks passed
@aphillips aphillips deleted the no-currency-unit-selection branch February 3, 2025 18:21
eemeli added a commit to messageformat/messageformat that referenced this pull request Mar 2, 2025
@eemeli eemeli added this to the LDML 47 milestone Jul 23, 2025
XM5jDcsHTyGJtQqlCi added a commit to XM5jDcsHTyGJtQqlCi/messageformat that referenced this pull request Oct 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Issue pertains to the default function set

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants