powered by
Translate between different languages
translate(text, from = "auto", to = "ar", trim_str = TRUE)
(character) vector of translated input text.
(character) vector of text to translate
(character) abbreviation to the input language code eg: "en" for English, by default it is "auto" for auto-detecting the input language.
(character) abbreviation to the output language code.
(logical) indicating whether to trim the string if it is exceeds 5000 characters.
translate("How are you?", from = "auto", to = "ar")
Run the code above in your browser using DataLab