Translate API is used to translate a string from one language to another. You just have to pass a string and mention in which language do you want to translate it. Below are some examples for your reference.
1. How are you doing today to spanish
2. I can't come to office today in hindi
3. Today is a lovely day to russian