You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
abou7mied
changed the title
[FEATURE REQUEST] translation component to support html translations
Suggesion: built-in translation component to support html interpolation
Apr 17, 2017
abou7mied
changed the title
Suggesion: built-in translation component to support html interpolation
Suggesion: built-in translation component to support html interpolation using slots
Apr 17, 2017
I was having a problem with html and component interpolation. (there is a solution below 😄)
My issue was with replace translation variables with vue components or html elements
For example
en.json
using v-html was bad option because it wouldn't parse vue components and I can't use html interpolation
This would output
I solved it by using slots and make custom translation component
translation.js
usage
test.vue
output
Maybe variables extracting isn't the same as the plugin
I think it would be a good idea if it was a built-in component in the plugin.
Thanks!
The text was updated successfully, but these errors were encountered: