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

Add support for range pluralization rules #16

Closed
tricoder42 opened this issue Feb 24, 2017 · 2 comments
Closed

Add support for range pluralization rules #16

tricoder42 opened this issue Feb 24, 2017 · 2 comments

Comments

@tricoder42
Copy link
Contributor

Interesting feature. Plurals have next to ordinal and cardinal also third category: range: http://www.unicode.org/cldr/charts/28/supplemental/language_plural_rules.html

From: formatjs/formatjs#868

@tricoder42
Copy link
Contributor Author

Question is, how to extend ICU MessageFormat with ranges. MessageFormat allows formatting of single variables in form {argument, formatType, formatArguments}. However, range depends on two arguments.

Two possible variants:

  1. {argument1 argument2, range} - Probably breaks a lot of MessageFormat parsers
  2. {argument1, range, argument2} - Valid ICU and also it can be read as argument1-argument2

@tricoder42
Copy link
Contributor Author

Let's do it later™️

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

No branches or pull requests

1 participant