text_tran | R Documentation |
Texts Translatation
text_tran(rawtext, appid, keyimp, from = "en", to = "zh")
rawtext |
a text which is translated |
appid |
from BaiDu |
keyimp |
form BaiDu |
from |
what language |
to |
the translated target language, and default is |
call BaiDu App to translate texts. See https://api.fanyi.baidu.com/product/113. Free version is limited to calling one time by one second.
# write your appid and key
# text_tran('apple',appid = '', keyimp = '')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.