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

CLDR v38 CI support #132

Merged
merged 6 commits into from
Apr 21, 2022
Merged

CLDR v38 CI support #132

merged 6 commits into from
Apr 21, 2022

Conversation

movermeyer
Copy link
Collaborator

@movermeyer movermeyer commented Apr 21, 2022

What are you trying to accomplish?

Fix the issues that prevent us from running CI with CLDR v38.

This PR replaces almost all of #68

What approach did you choose and why?

See #68 for all the context behind each of the changes.

What should reviewers focus on?

This doesn't actually mean that we can support v38. Indeed, there are still several known issues related to v38.

The impact of these changes

We'll be able to run CI against v38.

[This PR](unicode-org/cldr#474) added information about cases for pluralization of units.
This code was not ready for that, and started returning whichever happened to be that last case in the section.

For now, we'll just return the case-less version as we always did.
Previously, we were assuming that all unknown operands were `n`
We don't actually support "compact decimal" format numbers.
To do so would require refactoring the way we compute the f, t, v, and w values.

Since `c`/`e` are always 0 for non-"compact decimal" format numbers, we just hardcode it to 0 for now.
@movermeyer movermeyer marked this pull request as ready for review April 21, 2022 17:12
@movermeyer movermeyer changed the title CLDR v38 support CLDR v38 CI support Apr 21, 2022
@movermeyer movermeyer merged commit c3a80be into main Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant