Open ntluong95 opened 4 months ago
I forgot to mention that the index file for language versions is the must. For example, in this case we need index.es.qmd
.
@maelle It would be nice if I can be added as a contributor of the package 😊
Thank you @ntluong95! I need to think a bit about this. I feel it's adding some maintenance work (and duplication) on the side of the package, while it's not a lot of work for users to add the placeholders file. :thinking:
The two new functions deal with the situation when there is not yet available translation version of the main language. Take this book as an example:
The English version has 3 chapter
fulton.qmd
,r_practical_epiet.qmd
,tbe.qmd
, while the Spanish version only hasoswego.es.qmd
. Adding two new functionbabelquarto::render_dynamic_book()
andbabelquarto::render_dynamic_website()
creates a flexibility, so when all language variants are there, we can usebabelquarto::render_book()
andbabelquarto::render_website()
as usual