translate_text | R Documentation |
translates the text provided as a parameter using language autodetection in the language
translate_text(
text,
engine = "azure",
source_lang = NA,
target_lang = "en",
translate = FALSE
)
text |
: the text to translate |
engine |
: "azure" | "deeptranslate" |
source_lang |
: the language to translate from - if NA, then automatic detection will be performed |
target_lang |
: which language to translate to |
translate |
: translates for real. this is helpful to set to FALSE when debugging to avoid translation API fees |
a vector containing 1. a string = language detected and 2. a string = the translated text
example
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.