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
{{ message }}
This repository was archived by the owner on May 19, 2022. It is now read-only.
In my apps I have several cases where I'd like to use v-t, but my translations often include HTML content. Since v-t uses el.textContent (https://github.com/panter/vue-i18next/blob/master/src/directive.js#L68), I have to resort to other workarounds like v-html="$t()", which are more verbose and trigger ESLint warnings (b/c ESLint can't know my translations are safe).
Would you be open to a PR that adds an option for v-t to use el.innerHTML instead? Or possibly prefer another approach? I'm willing to put in the work!
Thanks for your time :)
The text was updated successfully, but these errors were encountered:
straub
changed the title
v-t And HTML in Translation Stringsv-t and HTML in Translation Strings
Aug 7, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In my apps I have several cases where I'd like to use
v-t
, but my translations often include HTML content. Sincev-t
usesel.textContent
(https://github.com/panter/vue-i18next/blob/master/src/directive.js#L68), I have to resort to other workarounds likev-html="$t()"
, which are more verbose and trigger ESLint warnings (b/c ESLint can't know my translations are safe).Would you be open to a PR that adds an option for
v-t
to useel.innerHTML
instead? Or possibly prefer another approach? I'm willing to put in the work!Thanks for your time :)
The text was updated successfully, but these errors were encountered: