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

PluralRule lacking support for new operands #786

Closed
qixils opened this issue May 21, 2021 · 1 comment
Closed

PluralRule lacking support for new operands #786

qixils opened this issue May 21, 2021 · 1 comment

Comments

@qixils
Copy link

qixils commented May 21, 2021

Overview Description

PluralRule is not updated to conform to the latest versions of CLDR and does not support the new operands c or e

Steps to Reproduce

Attempt to parse French plural rules: PluralRule.parse({"one":"i = 0,1","many":"e = 0 and i != 0 and i % 1000000 = 0 and v = 0 or e != 0..5","other":""})

Actual Results

Throws a RuleError: malformed CLDR pluralization rule. Got unexpected 'e'

Expected Results

Parses the rules successfully

Reproducibility

Consistent

Additional Information:

Using babel-2.9.1 from pypi

@akx
Copy link
Member

akx commented Jan 28, 2022

Babel 2.9 does not support those new rules, that's correct.

CLDR 40 support is coming in #826 (likely Babel 2.10); it will have support for parsing those operands (but nothing else around them).

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

2 participants