expTranslation <- rjson::fromJSON(file = system.file("Translations","equation.json",package = "Translations"))
#' @export
translationTypes <- list(equation = "equation",number = "number")
#' @export
translateExpression <- function(text, name, language){
if(name=="equation"){
result <- translateEquation(text,language)
}
else if(name=="number"){
result <- translateNumber(text,language)
}
result
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.