I am currently implementing vuejs 3 using TS.
I have set up my translation files in TypeScript as shown below:
index.ts:
export default {
'example': 'example',
}
To use the translations, I simply do:
{{ $t('example') }}
Now, I want to pass a parameter to the translation. For instance:
index.ts:
export default {
'hi_man': 'Hi {name}', //name being the parameter
}
Could you please help me find a way to achieve this?