fractal::i18n

Function ngettext_f

Source
pub fn ngettext_f(
    msgid: &str,
    msgid_plural: &str,
    n: u32,
    args: &[(&str, &str)],
) -> String
Expand description

Like ngettext, but replaces named variables with the given dictionary.

The expected format to replace is {name}, where name is the first string in the dictionary entry tuple.