-
Notifications
You must be signed in to change notification settings - Fork 55
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
v-translate don't work with Vue component's which wrapping <slot> #49
Comments
Hi, I do not have a lot of time to help you since I have a lot of work. If you want some help, please provide at least a link to a minimal reproduction of your problem. It can be a JSFiddle / JSBin / CodePen or GitHub repo. |
Minimal Reproduction: https://codepen.io/anon/pen/rzbeYL
(if there is default slot with only one element in it and it's text element --- use |
Thanx @tabun-matadorov I understand now. I'll take a look at this ASAP. |
Hi there. Just out of curiosity, does this work for you?
|
@kennyki Hi. Sure, this will work, because in your pen we translating a
and |
Cool, thanks. I think this behaviour of |
I am having exactly the same problem. The issue is that now it is really tricky to know when to use |
@mitar As for me, I have been consistently using only Cheers |
I have always just a string internally. The issue is that if the outside component has internal DOM elements it becomes messy. So:
This might or might not work depending on how components are implemented. Maybe And as you said, it would be preferable to always use So using |
Hi.
Having an issue with
v-translate
.Let's say we have
<ui-button>
component which wrappping<slot>
into some additional tags:and we are using it like
Awaited that
data-msgid
will beCreate Account
; instead it'sdata-msgid="<span class="fx:cross:center"> <slot /> </span>"
But exported string will be
Create Account
, so translations here will not work;The same problem will persist if we will use something like
The text was updated successfully, but these errors were encountered: