Static GitHub Issues

[234] i18n - Compile Error when try to render html content with {{{ $t('mytranslation')}}}

prev: route list upside down in 0.9.8
next: Page Prefetching

I am using vue-i18n (version 4.10.0) for internationalization support and it works well with SSR also. In my content I have few html phrass tags( <strong> <em> etc..)..

As per the documentation to format html content I am binding the language translation function using {{{ }}}.

https://kazupon.github.io/vue-i18n/formatting.html

I get the following error during compilation.

ERROR in ./~/vue-loader/lib/template-compiler.js?id=data-v-24d04d10!./~/vue-loader/lib/selector.js?type=template&index=0!./pages/trading/markets/forex.vue template syntax error - invalid expression: {{{$t('mytranslation')}}} @ ./pages/trading/markets/forex.vue 11:23-145 @ ./.nuxt/router.js @ ./.nuxt/index.js @ ./.nuxt/client.js @ multi webpack-hot-middleware/client?reload=true ./.nuxt/client.js

Please help me to resolve this

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c204">#c204</a>)</em></sub></div>