Hello,
First of all thank you very much for the babelquarto
package. I have been using it to help localize some courses for my organisation.
I am trying to translate the sections of a website as below. On the left the English version, on the right the Spanish version. In the black box I want the menu to be translated Home/Section 1 to Inicio/Sesión 1. The green box is translated with the title of each qmd.
Is there a possibility to have the same translation mechanism as the part of books, and have a yml file like this, i.e. text-es and section-es in a single yml file
website:
title: "repex-babelquarto"
sidebar:
search: true
contents:
- text: Home
text-es: Inicio
href: index.qmd
- section: "Section 1"
section-es: "Sesión 1"
contents:
- practices.qmd
Currently, I managed to get the results I wanted with 3 yml files, following the using profiles but I would like to avoid have multiple yml files to be modifying each time.
_quarto.yml
_quarto-en.yml
website:
title: "repex-babelquarto"
sidebar:
search: true
contents:
- text: Home
href: index.qmd
- section: "Section 1"
contents:
- practices.qmd
_quarto-es.yml
website:
title: "repex-babelquarto"
sidebar:
search: true
contents:
- text: Inicio
href: index.qmd
- section: "Sesion 1"
contents:
- practices.qmd
A repo can be found here
Thanks
Yann