When you pass in an English or Chinese word, 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")

Arguments

input

An English or Chinese word.

from

The source language, an optional parameter.

to

The target language, an optional parameter.

Value

A list consisting of Phonetic, explains, etc about target language.

Examples

# Example(Not run)
# translate("good")
# translate("quarto", from = "en", to = "zh-CHS")