View source: R/translate_view.R
translate_view | R Documentation |
When you pass in an English or Chinese sentence, this function will Open Youdao website browse translation results.
translate_view(input, from = "auto", to = "auto")
input |
An English or Chinese sentence. |
from |
The source language, an optional parameter. |
to |
The target language, an optional parameter. |
Just open a website and do not return any results.
## Not run:
translate_view("I like China")
translate_view("quarto", from = "en", to = "zh-CHS")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.