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

Enable configuring data bundled into the crate #26

Open
zbraniecki opened this issue Aug 22, 2018 · 0 comments
Open

Enable configuring data bundled into the crate #26

zbraniecki opened this issue Aug 22, 2018 · 0 comments

Comments

@zbraniecki
Copy link
Owner

At the moment our build time configuration is to take a CLDR JSON file(s) and build rules.rs with all of the rules in them.

In would be useful to be able to select which type of rules we want and what locales we want them in. It could be a config toml/json/whatever file for make_pluralrules which could look like this:

{
  "types": ["ordinal", "cardinal"],
  "locales": ["en", "pl", "fr"]
}

where every omitted field means "all available in the JSON source".

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

No branches or pull requests

1 participant