Pluralisation always uses the `other` variant
I'm not sure if I'm not missing something, but I tried to use pluralisation like this:
```fluent
-terms-email = { $count ->
[one] email
*[other] emails
}
delete-emails = Delete { $count } { -terms-email($count) }
```
```rs
let msg = bundle.get_message("delete-emails").unwrap();
let pattern = msg.value().unwrap();
let mut args = fluent_bundle::FluentArgs::new();
args.set("count", count);
let mut errors = Vec::new();
let r = bundle.format_pattern(&pattern, Some(&args), &mut errors);
if !errors.is_empty() {
println!("errors: {:?}", errors);
}
r
```
What I'm experiencing is that I am unable to get the library use the singular or the `few` form. It just always seems to use the `other` form, i.e. `Delete 1 emails`.
This is quite surprising, since I could not find any explicit mention of any Project Fluent features not being supported, much less features that are showcased on Project Fluent's main page.
0 条评论