I have a function that returns an interpolated string for example.
`This is my string $t(some.value)`
The issue I am facing is that t
is returned after I get the interpolated string. For example
const mainFunction = (targetString) => {
const { t } = getTranslationService();
return targetString;
}
I want to resolve the value and return the processed string in the mainFunction. I tried with eval
but it didn't work