macro_rules! tid {
($id:expr, $( $name:ident : $value:expr ),* ) => { ... };
($id:expr ) => { ... };
}Expand description
Translate message from key, return id if no translation found…
let message = tid!("no-key");
assert_eq!(message, "message-id: no-key should be translated");