Skip to contents

Create or update glossary

Usage

deepl_upsert_glossary(filename, glossary_name = NULL, source_lang, target_lang)

Arguments

filename

Name of the glossary file. See DeepL docs on supported formats. babeldown is stricter: the columns need to be named like source_lang and target_lang.

glossary_name

Name for the glossary. Defaults to the filename without extension.

source_lang

Name or code of source language. See DeepL docs.

target_lang

Name or code of source language. See DeepL docs.

Value

glossary ID

Examples

if (FALSE) { # \dontrun{
deepl_upsert_glossary(
  system.file("example-es-en.csv", package = "babeldown"),
  glossary_name = "rstats-glosario",
  target_lang = "Spanish",
  source_lang = "English"
)
} # }