translate {gtranslate} | R Documentation |
Translate between different languages
Description
Translate between different languages
Usage
translate(text, from = "auto", to = "ar", trim_str = TRUE)
Arguments
text |
(character) vector of text to translate |
from |
(character) abbreviation to the input language code eg: "en" for English, by default it is "auto" for auto-detecting the input language. |
to |
(character) abbreviation to the output language code. |
trim_str |
(logical) indicating whether to trim the string if it is exceeds 5000 characters. |
Value
(character) vector of translated input text.
Examples
translate("How are you?", from = "auto", to = "ar")
[Package gtranslate version 0.0.1 Index]