Learn R Programming

aws.translate (version 0.1.4)

translate: Translate text between languages

Description

Translate text between languages

Usage

translate(text, from = "en", to, ...)

Arguments

text

A character string containing a text

from

A two-letter language code specifying the language of the source text.

to

two-letter language code specifying the language to translate in to.

Additional arguments passed to translateHTTP.

Value

A character string containing the translation.

Examples

Run this code
# NOT RUN {
  translate("hello world!", to = "fr")
# }

Run the code above in your browser using DataLab