Templeate string with custom styling aka rich text, how to? #2936
Unanswered
onurusluca
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I think you're probably looking for something like this: https://vue-i18n.intlify.dev/guide/advanced/component.html |
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
-
Forgive me if this was asked before, I've searched everywhere but couldn't find.
We can currently do this with i18n:
en.json:
example.vue:
And we can get something like this:
But what if I want to style the email? What do I do then?
As an example there is https://next-intl-docs.vercel.app/docs/usage/messages#rich-text
We do something like this:
then use it like this:
There is only one way I could make it work:
I don't know if this is the best way or if there are other ways.
This way also wasn't mentioned in the docs. If there is no other way, I want to at least add this to docs, if there is I want to know and add that to docs.
Is something like this possible with this module?
Beta Was this translation helpful? Give feedback.
All reactions