Echo specific text depending on language

Permalink
Hi I would like to know how to do to echo some specific html depending on language selection. I know there is a specific piece of code to show a specific stack but how do we do to show a different text let's say like a main title that would be different depending on the selected language.
Many thanks