diff --git a/NAMESPACE b/NAMESPACE index afcd277..053489c 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -1,10 +1,12 @@ # Generated by roxygen2: do not edit by hand +export(deepl_languages) export(deepl_translate) export(deepl_translate_hugo) export(deepl_translate_markdown_string) export(deepl_translate_quarto) export(deepl_translate_vtt) +export(deepl_update) export(deepl_upsert_glossary) export(deepl_usage) importFrom(lifecycle,deprecated) diff --git a/man/deepl_update.Rd b/man/deepl_update.Rd new file mode 100644 index 0000000..ccab518 --- /dev/null +++ b/man/deepl_update.Rd @@ -0,0 +1,43 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/update.R +\name{deepl_update} +\alias{deepl_update} +\title{Update a translation of a file in a Git repo} +\usage{ +deepl_update( + path, + out_path, + yaml_fields = c("title", "description"), + glossary_name = NULL, + source_lang = NULL, + target_lang = NULL, + formality = c("default", "more", "less", "prefer_more", "prefer_less") +) +} +\arguments{ +\item{path}{Path to the Markdown file to be translated (character).} + +\item{out_path}{Path where the new translated file should be saved (character).} + +\item{yaml_fields}{Vector of character names of YAML fields to translate.} + +\item{glossary_name}{Name of the glossary to be used, if any (character).} + +\item{source_lang}{Name or code of source language. See \href{https://www.deepl.com/docs-api/general/get-languages/}{DeepL docs}.} + +\item{target_lang}{Name or code of source language. See \href{https://www.deepl.com/docs-api/general/get-languages/}{DeepL docs}.} + +\item{formality}{Formality level to use (character), one of +\itemize{ +\item "default" (default) +\item "less" -- for a more informal language +\item "prefer_more" -- for a more formal language if available, otherwise fallback to default formality +\item "prefer_less" -- for a more informal language if available, otherwise fallback to default formality +}} +} +\value{ +None +} +\description{ +Re-use existing translation where possible +}