Skip to contents

Translate a document via the Google Translate API

Usage

gl_translate_document(
  d_path,
  target = "es-ES",
  output_path = "out.pdf",
  format = c("pdf"),
  source = "en-UK",
  model = c("nmt", "base"),
  location = "global"
)

Arguments

d_path

path of the document to be translated

output_path

where to save the translated document

format

currently only pdf-files are supported

Value

output filename

See also

Examples


if (FALSE) { # \dontrun{
gl_translate_document(system.file(package = "googleLanguageR","test-doc.pdf"), "no")

} # }