This package hosts functions and guidelines for translating Applied Epi courses and resources. This includes courses, tutorials, case studies and books (such as the EpiRhandbook and Applied Epi Manual).
Installation
You can install the development version of aetranslations from GitHub with:
# install.packages("remotes")
remotes::install_github("appliedepi/aetranslations")Core Functions
The package provides a suite of functions to streamline the translation workflow:
-
translate_df(): Translates a specific column within a data frame. -
translate_dict(): Creates and translates data dictionaries for variable names and value labels. -
translate_doc(): Translates the textual content of Quarto/R Markdown documents while preserving code and structure. -
render_resource(): A wrapper aroundbabelquarto::render_website()that finds and creates placeholder files for missing translations before rendering a multi-language website.
Usage
For a detailed guide on how to use this package to translate a case study, please see the Case Study Translation vignette on the package website.