t_fmt2

Function t_fmt2 

Source
pub fn t_fmt2<T1: Display, T2: Display>(
    app: &AppState,
    key: &str,
    arg1: T1,
    arg2: T2,
) -> String
Expand description

What: Format translated string with two format arguments.

Inputs:

  • app: Application state (for locale access)
  • key: Translation key
  • arg1: First format argument
  • arg2: Second format argument

Output:

  • Formatted translated string