Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FF116 Intl.PluralRules - NumFormat v3 #28097

Merged
merged 10 commits into from
Jul 28, 2023

Conversation

hamishwillee
Copy link
Collaborator

@hamishwillee hamishwillee commented Jul 21, 2023

This adds missing constructor options to the Intl.PluralRules constructor and PluralRules/resolvedOptions()

It also adds some information about what the PluralRules do - i.e. the previous version was too high level.

@github-actions github-actions bot added the Content:JS JavaScript docs label Jul 21, 2023
@hamishwillee hamishwillee marked this pull request as ready for review July 24, 2023 08:40
@hamishwillee hamishwillee requested a review from a team as a code owner July 24, 2023 08:40
@hamishwillee hamishwillee requested review from Josh-Cena and removed request for a team July 24, 2023 08:40
@hamishwillee
Copy link
Collaborator Author

Worth getting some feedback now.

@hamishwillee hamishwillee mentioned this pull request Jul 25, 2023
10 tasks
Comment on lines +25 to +32
Creating appropriate sentences for each form depends on the language, and even in English may not be as simple as just adding "s" to a noun to make the plural form.
Using the example above, we see that the form may affect:

- **Nouns**: 1 dogs/2 dogs (but not "fish" or "sheep", which have the same singular and plural form).
- **Verbs**: 1 dog _is_ happy, 2 dogs _are_ happy
- **Pronouns** (and other referents): Do you want to play with _it_ / _them_.

Other languages have more forms, and choosing appropriate sentences can be even more complex.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@Josh-Cena

With respect to #28097 (comment) (" This is very interesting, because when people think of "plural" they usually think of changing the noun ...)

Yes. I've stolen the form of your comment and inserted it in the text here. I had thought about this, but found it hard to decide what should be included, particularly when I don't "grok" the full discussion in https://cldr.unicode.org/index/cldr-spec/plural-rules - especially when it gets down to the Welsh.

Its a good suggestion. Hope this meets with your approval. Other suggestions merged.

Copy link
Member

Choose a reason for hiding this comment

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

Yep, this looks very clear 👍

@Josh-Cena Josh-Cena merged commit b444aa7 into mdn:main Jul 28, 2023
6 checks passed
@hamishwillee hamishwillee deleted the ff116_intl_pluralrules branch July 30, 2023 22:39
@hamishwillee
Copy link
Collaborator Author

Thanks for the review Josh!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Content:JS JavaScript docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants