-
Notifications
You must be signed in to change notification settings - Fork 110
Pluralisation always uses the other variant #398
Copy link
Copy link
Open
Description
I'm not sure if I'm not missing something, but I tried to use pluralisation like this:
-terms-email = { $count ->
[one] email
*[other] emails
}
delete-emails = Delete { $count } { -terms-email($count) }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);
}
rWhat 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels