Replies: 1 comment 1 reply
-
The warnHtmlMessage: false option in vue-i18n disables the warning message that is displayed when HTML tags are found in translation strings. To actually enable HTML in your translations, you need to set the preserveDirectiveContent option to true. To do this with Nuxt.js and vue-i18n, you can add the preserveDirectiveContent option to the vueI18n object in your nuxt.config.js file |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to enable HTML in my .json translation files, and according the vue-i18n docs it should be this for the composition api: warnHtmlMessage: false
I've tried adding this to the i18n in nuxt.config and also i18n.vueI18n, but nothing happens.
This is the message i get:
[plugin:unplugin-vue-i18n] Detected HTML in
Beta Was this translation helpful? Give feedback.
All reactions