How to do component interpolation? #3217
Answered
by
samuelstroschein
mattp0123
asked this question in
[Paraglide] Svelte + SvelteKit
-
Like I have a message: <h1>
{m.my_message({
name: <span class='text-red'>{name}</span>,
})}
</h1> |
Beta Was this translation helpful? Give feedback.
Answered by
samuelstroschein
Nov 19, 2024
Replies: 1 comment
-
Not yet natively supported because translators and designers must be considered when implementing the feature. We have an RFC already https://github.com/orgs/opral/discussions/913 but await the lix 1.0 milestone. The workaround people use is to embed the HTML into the message and then use
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mattp0123
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not yet natively supported because translators and designers must be considered when implementing the feature. We have an RFC already https://github.com/orgs/opral/discussions/913 but await the lix 1.0 milestone.
The workaround people use is to embed the HTML into the message and then use
@html
in svelte ordangerouslySetInnerHtml
in react: