View source: R/google_translate.R
google_translate | R Documentation |
Translate text using google translate
google_translate(text, target_language = "en", source_language = "auto")
text |
This is the text that you want to translate. |
target_language |
This is the language that you want to translate the text into. The default value for this argument is "en" for English. |
source_language |
This is the language of the text that you want to translate. The default value for this argument is "auto", which means that the function will try to automatically detect the language of the text. |
Translated text.
google_translate("I love languages", target_language = "es")
text_to_translate <- c("the", "quick", "brown")
google_translate(text_to_translate, "fr", "en")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.