Skip to main content

t

Macro t 

Source
macro_rules! t {
    ($cx:expr, $id:expr $(, $name:ident = $value:expr)* $(,)?) => { ... };
}
Expand description

A message spelled in the request’s locale: t!(cx, "id", name = value, ..) is text!("id", name = value, ..).localize(cx), for what takes a String, such as a Notification’s title.

Notification::success(t!(cx, "orders-shipped", count = 3))