Skip to content

How to do component interpolation? #3217

Discussion options

You must be logged in to vote

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 or dangerouslySetInnerHtml in react:

<h1>
  {m.my_message({ name }) }
</h1>
my_message = Hello <span class='text-red'>{name}</span>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mattp0123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants