Function chapter::expand_format_functions
source · pub fn expand_format_functions(input: &str, locale_code: &str) -> String
Expand description
Expands all format functions in a given string, using pluralisation rules specified by the given locale (as an IETF BCP-47 language tag).
Panics
When the string contains a plural
or ordinal
format function, but the
specified value cannot be parsed as a number.