macro_rules! tr {
($key:literal $(, $name:ident = $value:expr)* $(,)?) => { ... };
}Expand description
The text of a key from the catalogues last installed, by
install or the connected I18nPlugin (global), with named
arguments; the key itself
when no catalogue has it. The extractor finds its literal keys.
use egui_pop_i18n::tr;
assert_eq!(tr!("some-key"), "some-key");
assert_eq!(tr!("files", count = 3), "files");