
Translate a document via the Google Translate API
Source:R/translate-document.R
      gl_translate_document.RdTranslate a document via the Google Translate API
Arguments
- d_path
 Path to the document to be translated
- target
 Target language code (default "es-ES")
- output_path
 Path where to save the translated document (default "out.pdf")
- format
 Document format. Currently, only "pdf" is supported
- source
 Source language code (default "en-UK")
- model
 Translation model to use ("nmt" or "base")
- location
 Location for translation API (default "global")
See also
Other translations:
gl_translate(),
gl_translate_detect(),
gl_translate_languages()
Examples
if (FALSE) { # \dontrun{
gl_translate_document(
  system.file(package = "googleLanguageR", "test-doc.pdf"),
  target = "no"
)
} # }