translate function

Translates text to the specified language