R/translate.R
translate.Rd
When you pass in an English or Chinese sentence, this function will calls the Youdao text translation API for R to return the corresponding type of Chinese or English representation.
translate(input, from = "auto", to = "auto")
An English or Chinese sentence.
The source language, an optional parameter.
The target language, an optional parameter.
The translation results about target language.
# Example(Not run)
# translate("I like China")
# translate("quarto", from = "en", to = "zh-CHS")