t_fmt1

Function t_fmt1 

Source
pub fn t_fmt1<T: Display>(app: &AppState, key: &str, arg: T) -> String
Expand description

What: Get a translation with a single format argument (convenience function).

Inputs:

  • app: AppState containing translation maps
  • key: Dot-notation key
  • arg: Single format argument

Output:

  • Formatted translated string