-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
Conversation
files/en-us/web/javascript/reference/global_objects/intl/pluralrules/pluralrules/index.md
Show resolved
Hide resolved
Worth getting some feedback now. |
files/en-us/web/javascript/reference/global_objects/intl/pluralrules/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/javascript/reference/global_objects/intl/pluralrules/selectrange/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/javascript/reference/global_objects/intl/pluralrules/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/javascript/reference/global_objects/intl/pluralrules/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/javascript/reference/global_objects/intl/pluralrules/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/javascript/reference/global_objects/intl/pluralrules/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/javascript/reference/global_objects/intl/pluralrules/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/javascript/reference/global_objects/intl/pluralrules/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/javascript/reference/global_objects/intl/pluralrules/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/javascript/reference/global_objects/intl/pluralrules/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/javascript/reference/global_objects/intl/pluralrules/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/javascript/reference/global_objects/intl/pluralrules/select/index.md
Outdated
Show resolved
Hide resolved
…lrules/index.md Co-authored-by: Joshua Chen <[email protected]>
Co-authored-by: Joshua Chen <[email protected]>
…lrules/index.md Co-authored-by: Joshua Chen <[email protected]>
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
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 👍
files/en-us/web/javascript/reference/global_objects/intl/pluralrules/select/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/javascript/reference/global_objects/intl/pluralrules/select/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/javascript/reference/global_objects/intl/pluralrules/selectrange/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/javascript/reference/global_objects/intl/pluralrules/pluralrules/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/javascript/reference/global_objects/intl/pluralrules/index.md
Outdated
Show resolved
Hide resolved
Thanks for the review Josh! |
This adds missing constructor options to the
Intl.PluralRules
constructor andPluralRules/resolvedOptions()
It also adds some information about what the PluralRules do - i.e. the previous version was too high level.