ropensci-review-tools / babelquarto

Renders a Multilingual Quarto Project (Book or Website)
https://docs.ropensci.org/babelquarto/
Other
39 stars 7 forks source link

Multilingual Websites: Sidebar Section Alternative Language Key #30

Closed infantej2 closed 7 months ago

infantej2 commented 7 months ago

Switches to designated language for section titles in the sidebar. If there was no alternative section title, then just uses the original section title. Modify and edit as needed. Please disregard the past commits, only the recent ones are relevant to this PR :)

Here is an example of what it would look in the _quarto.yaml:

sidebar:
    style: "docked"
    logo: "can_wm.png"
    collapse-level: 1
    contents:
      - index.qmd
      - section: "Available Data"
        section-fr: "Available Data (fr)"
        contents:
          - cwfis_datasets.qmd
          - cwfis_map.qmd
          - cwfis_geoserver.qmd
      - usage.qmd
      - section: "Past Map Images"
        section-fr: "Past Map Images (fr)"
        contents:
          - map_images_m3.qmd
          - map_images_fwi.qmd
          - map_images_fbp.qmd
          - map_images_weather.qmd
      - section: "Access Geoserver Layers"
        section-fr: "Access Geoserver Layers (fr)"
        contents:
          - layer_wms.qmd
          - layer_wfs.qmd
          - layer_wcs.qmd
maelle commented 7 months ago

@infantej2 thanks for your contribution. I am not sure I follow what this PR is doing, could you please

maelle commented 7 months ago

It'd make sense to describe the changes to see whether they fit within the package scope? Thank you!