In R, it doesn't take data written in hindi, if a data frame is assigned. My code is:
translate(content.vec = newdata$French,
google.api.key = "API key 1kd",
source.lang = 'hi', target.lang = 'en')
Error is:
Error in file(con, "r") : cannot open the connection
Also, data which is in hindi. It turned like this
X..U.092A..U.094D..U.0930..U.092F..U.094B..U.0917..
in R.