Using variables and not show them

I would like to input a variablein the snippet and then depending of its content, have different outputs, but need the variable not to be shown in the output.

For example:

Input "English" or Input "Spanish"

"Hola John como estas?"
"Hello John how are you?"

How can I solve this?
Thank you!

Refer to this question here: