Skip to main content

t_plural

Function t_plural 

Source
pub fn t_plural(n: i64, one: &str, other: &str) -> String
Expand description

A count in the app’s language: t_plural(n, "{n} row", "{n} rows"). The English forms are the keys. A table gives each form as "{n} rows#one", "{n} rows#few", "{n} rows#many", "{n} rows#other" (or just "{n} rows" for the other form). {n} is the number formatted for the user’s region (1,000 or 1.000).