We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tr!
1 parent ba34417 commit 44410c6Copy full SHA for 44410c6
src/i18n.rs
@@ -48,11 +48,10 @@ macro_rules! tr {
48
$crate::i18n::LOADER.get($id)
49
}};
50
51
- // i hope this will work right. this is AI slop too(( and i didn't check yet
52
- ($id:expr, $($args:expr),*) => {{
+ ($id:expr, $($key:expr => $value:expr),*) => {{
53
let mut args = std::collections::HashMap::new();
54
$(
55
- args.insert(stringify!($args).trim_matches('"'), $args);
+ args.insert(stringify!($key), $value.to_string());
56
)*
57
$crate::i18n::LOADER.get_args($id, args)
58
0 commit comments