In vue2 I used to be able to have variables in my json translation file like this:
"info": "Email: <a href="mailto:@:contact-details.email">@:contact-details.email</a>"
And then in the same file I defined:
"contact-details": {
"phone": "123456789",
"email": "[email protected]"
}
I then use it in a component like this:
$t('info')
However, If I try to use this in Vue3 it doesn’t work. I get “Email: ” but no email after that on the screen. It seems like the variable thing doesn’t work in vue3 anymore? How can I make it work in Vue3?