fluent-rs icon indicating copy to clipboard operation
fluent-rs copied to clipboard

Add options for cardinal/ordinal plural types

Open oliver-ni opened this issue 2 years ago • 1 comments

Adds functionality for switching between plural types (cardinal and ordinal).

Fluent docs include this option in the NUMBER built-in function. Since fluent-rs doesn't have that yet, I included it in the place where all the other number options were. Please let me know if this isn't the appropriate place / way to include this functionality.

Also, I called it kind instead of type since the latter is a Rust keyword... a little weird but not sure if there's a better way to deal with that.

oliver-ni avatar Jun 25 '22 21:06 oliver-ni

@oliver-ni to answer on using "type" in Rust, you can use raw identifiers. https://doc.rust-lang.org/rust-by-example/compatibility/raw_identifiers.html

juliancoffee avatar Jul 26 '22 19:07 juliancoffee

Closing as stale. Feel free to re-open if you want to address the requested changes.

gregtatum avatar Sep 08 '23 15:09 gregtatum