Using google translate APIs to translate a sentence