Replies: 1 comment 1 reply
-
I'm not sure about if you need it in this case. You can translate the values separately and use that markup from a component or just a string from a function. For example, I face this pattern frecuently: tr!("supported-by", {
"platform" => format!(
"<a href=\"https://example.com\">{}</a>",
tr!("my-platform"),
),
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I find myself wanting to translate multiple bits of a view as a unit; for instance I have this translation entry:
This is not ideal as it puts direct control of markup into translators' hands.
In the JS world, there are features like DOM Overlays and React Overlays that let you give safe access to translators of the ability to translate markup without handing them the reins entirely.
I'm wondering what something like that would look like for Leptos and I'd be interested to know what others think.
Beta Was this translation helpful? Give feedback.
All reactions