-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
feat: vue named slot syntax #3327
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, seems to be working fine, thanks a lot for the contribution 🎉
@stepan662 I made a mistake. The Currently, I don't see a really good solution. Only move slots execution to the render function. Maybe you have a better idea. |
If the moving to render function works, I think the solution is fine. Or are there some drawbacks? |
I would like to use Vue reactivity. But since the $slots object is not reactive, I don’t see any other solutions. I will create PR created: #3340 |
The current
Tolgee Vue
library doesn't support localizing messages that contain HTML tags or components, causing inconvenience for our team and potentially for others in the community.Inspired by the approach in
Vue-i18n
's Component Interpolation (explained here), these changes introduce named slots for string interpolation.