Skip to main content

rule_message

Function rule_message 

Source
pub fn rule_message(
    key: &str,
    params: &[(String, String)],
    fallback: &str,
) -> String
Expand description

Translate a violation message using its key and parameters. Returns the translated message with parameters substituted. Falls back to fallback if no translation is found or key is empty.