translate | R Documentation |
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")
input |
An English or Chinese word. |
from |
The source language, an optional parameter. |
to |
The target language, an optional parameter. |
A list consisting of Phonetic, explains, etc about target language.
# Example(Not run)
# translate("good")
# translate("quarto", from = "en", to = "zh-CHS")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.