You need to translate the entire thing and not just part of it. No substitution, textarea, etc.. will do partial translation like what you're wanting. So for example the below would be a valid usage.
Hello [value]!
The translation string could be as follows.
'Hello [value]!' => 'Goodbye [value]!'