macro_rules! t {
($id:expr $(, $name:ident = $value:expr)* $(,)?) => { ... };
}Expand description
A message as a closure, for any text a view shows: it follows the app’s language, and the signals the arguments read.
ⓘ
<Text>{t!("greeting", name = user.get().name)}</Text>
<Button>{t!("save")}</Button>
<TextInput placeholder=t!("search.placeholder")/>id.attribute is one of a message’s attributes. Arguments are
anything ToArg: strings, numbers (which select plural forms, and
which the platform writes, as the user’s region writes them), dates
(SystemTime), signals. Each is evaluated again in the closure.