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

Plural rule handling from intl_pluralrules #56

Merged
merged 2 commits into from
Jul 31, 2018

Conversation

unclenachoduh
Copy link
Contributor

Remove mock implementation for plural rules and integrate intl_pluralrules crate.

@zbraniecki zbraniecki merged commit 8d7857a into projectfluent:master Jul 31, 2018

let locale = supported[0].to_owned();

let pr = IntlPluralRules::create(&locale, PluralRuleType::CARDINAL).unwrap();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turning a string slice into an owner String, just to pass a reference (slice) to it in the next line doesn't make much sense ;)
Next time:

let pr = IntlPluralRules::create(supported[0], ...);

@@ -22,3 +22,4 @@ fluent-locale = "0.3.1"
fluent-syntax = "0.1.0"
failure = "0.1.1"
failure_derive = "0.1.1"
intl_pluralrules = "0.8.1"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing trailing newline

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.

None yet

3 participants