-
-
Notifications
You must be signed in to change notification settings - Fork 861
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
data attributes aren't translated? #45
Comments
It seems the problem is that a Vue directive to apply select2 (https://select2.github.io/) to a select box runs before the translation happens. Select2 picks up the value of data-placeholder before the translation occurs. Any ideas how to fix this? |
I tried with other values and they arent being processed either, so it isnt a vue-i18n issue. Closing and moving issue to vue. |
hi,does this issue solved?I have the same problem with you and look forward to your answer. thank you! |
I have solved this issue. Hope it will help you.https://jsfiddle.net/2av8r31w/3/ |
I guess what @mygaochunming wrote, specifically the usage of |
Thanks a lot! |
Why isn't data-placeholder="{{ $t('path.to.key') }} being translated when all the other "translations" are working, is it because its a data attribute? Shouldn't those work as well?
The text was updated successfully, but these errors were encountered: