We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
t!
1 parent 80523a4 commit 2cae13aCopy full SHA for 2cae13a
examples/core/i18n/src/templates/index.rs
@@ -7,7 +7,7 @@ pub fn index_page<G: Html>(cx: Scope) -> View<G> {
7
8
view! { cx,
9
p { (t!("hello", {
10
- "user": username
+ "user" = username
11
}, cx)) }
12
a(href = link!("/about", cx)) { "About" }
13
}
packages/perseus/src/translator/mod.rs
@@ -60,7 +60,8 @@ macro_rules! t {
60
};
61
// When there are arguments to interpolate
62
($id:expr, {
63
- $($key:literal: $value:expr),+
+ // NOTE Using a colon here leads to literally impossible to solve cast errors based on compiler misinterpretations
64
+ $($key:literal = $value:expr),+
65
}, $cx:expr) => {{
66
let mut args = $crate::internal::i18n::TranslationArgs::new();
67
$(
0 commit comments