Description Usage Arguments Value Examples
This uses the MS translation API - you need your key and secret
set as MS_TRANSLATE_KEY
and MS_TRANSLATE_SECRET
environment variables.
1 2 3 | translate_gadget(text = "", to = NULL)
translate_langs()
|
text |
Default text to translate. |
to |
Default language to translate to. See |
A length one character vector containing the translated text.
1 2 | if (interactive())
translate_gadget("My name is Hadley", "fr")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.