3

I'm using vue18n in my vue3 application. For a specific component I would like to provide my template with the translation key dynamically. So, I would like to use something like this:

<i18n-t keypath={{messageKey}} tag="p" id="myId>
...
</i18n-t>

So, instead of specifying a fixed string as a keypath, I would like to provide the message key dynamically. Is it possible?

Nikola Pavicevic
  • 21,952
  • 9
  • 25
  • 46
Safari
  • 11,437
  • 24
  • 91
  • 191

1 Answers1

0

Did you try to bind it, like :keypath="messageKey"

Nikola Pavicevic
  • 21,952
  • 9
  • 25
  • 46