Skip to main content

tf

Function tf 

Source
pub fn tf(key: &'static str, args: &[(&str, &str)]) -> String
Expand description

A translated string with {name} placeholders filled in.

Runtime substitution rather than format! because the template is chosen at runtime and format! needs a literal. Placeholders are named, not positional, so a translator may reorder them — which some of these languages require.