panter / vue-i18next

Internationalization for vue using the i18next i18n ecosystem.
https://panter.github.io/vue-i18next/
176 stars 47 forks source link

Use i18n component/tag #68

Closed AnReZa closed 5 years ago

AnReZa commented 5 years ago

With normal i18n, you can do something like this:

  <i18n path="term" tag="label" for="tos">
    <a :href="url" target="_blank">{{ $t('tos') }}</a>
  </i18n>

This doesn't work in i18next. It throws an error, that i18n is not a known tag. Is there a way to enable that functionality for i18next as well?

AnReZa commented 5 years ago

Stupid me. The tag is called i18next instead of i18n in i18next.