I am trying to produce a document in rmarkdown that can produce outputs in multiple (natural) languages, it should extract the text in one of the translations from a data.frame.
The data.frame should contain a column for each language and translations of the same text on each row, e.g.
EN <- c('title', 'author', 'a sentence')
FR <- c('titre', 'auteur', 'une phrase')
translation <- data.frame(EN, FR, stringsAsFactors = FALSE)
It should be possible to format the text extracted, e.g.
# [desired code here]
Should produce and rmarkdown title.
EDIT: Ideally we would be able to specify the language in the YAML front-matter

