-
-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tags interpolation in Vue 3 #1751
Comments
Although with vnode function it seems to be working
|
Hey, I didn't implement this for Vue, as I'm not so experienced with vue and it was not clear to me what would be a good approach. The working example that you got, is similar to the solution we have for React, but I don't think it's possible to do in Vue in a nicer way (without the I've seen an similar approaches with the slots and with listing the available elements as children and then referencing them by index. But I didn't like that you can't really automatically pass the content to them like in React. What would you consider a proper solution? |
@stepan662 thanks for the reply Honestly, I am not in the position to make some expert assumptions here 😅 I just wanted to make sure that at least the way I am doing it will not break things later on because of the lack of documentation on the matter. The slot-solution seems like a bit more Vue-ish to me. Or maybe some helper component for that.
|
Ok, once I'll do a bit more research on this I'll try to implement it. |
This issue is stale because it has been open for 30 days with no activity. |
Solution for this was implemented in tolgee/tolgee-js#3327 |
Can please anybody guide me how to implement this behavior with a Vue component properly?
https://tolgee.io/js-sdk/integrations/react/tags-interpolation
vue-i18n for example has special slots for that:
https://vue-i18n.intlify.dev/guide/advanced/component.html#slots-syntax-usage
That variant outputs plain text instead of HTML:
The text was updated successfully, but these errors were encountered: