Internationalization / Multi-lingual project #12874
Closed
kodonian
started this conversation in
Feature Requests
Replies: 1 comment 4 replies
-
@kodonian Thanks but there is an open issue for this already. Making a new discussion will only scatter the information highly increasing the likelihood that it will be lost. I'm going to close this as duplicate. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
💡 Proposal: Native Support for Multi-Lingual Projects in Quarto
I’d like to propose a clean and scalable approach to support multi-lingual content in Quarto, based on the concept of a “root” project with internationalization-aware structure. This expands on previous discussions in Issue #12864 and a workaround described in May 2025.
Currently, there are two common strategies for managing multi-lingual websites/books/projects in Quarto:
✅ Approach 1: Single Project using
profiles
Maintain a single project directory and use Quarto’s
profiles
system to switch between languages. Each chapter is duplicated with different filenames (e.g.,Kapitel1.qmd
for German,Chapter1.qmd
for English), while shared styles, filters, and assets are kept global.Pros:
v1.8.11
).qmd
filesCons:
✅ Approach 2: Separate Project Folders per Language
Use one folder per language (e.g.,
/de
,/en
) and link them at a higher-level root project. This allows Quarto to build each language version independently while keeping shared assets in a common location.Pros:
shared/
folderCons:
Example Configuration
🛠 Suggested
quarto render
Behavior for Multi-Language ProjectsWhen a
languages:
field is defined in the root_quarto.yml
, Quarto could automatically render all defined language subprojects by default when running:To render a single language explicitly, a new flag could be introduced:
similar syntax for
quarto preview
.This structure would make Quarto a powerful tool for multilingual documentation, reducing the need for scripting workarounds while keeping both content and build logic well-organized.
🌐 Beyond Languages: A Generalized Sub-Project Framework
While this
languages:
mechanism is primarily motivated by multilingual publishing, the same structural approach could be extended to support other types of sub-projects. For example, authors might wish to maintain different editions (e.g., "student" vs. "instructor"), platform variants (e.g., "web" vs. "PDF"), or regional customizations within the same repository. By generalizing the concept of language-aware subfolders into asubprojects:
field, Quarto could offer a consistent and scalable way to manage variations of content under a unified root configuration, enablingquarto render
to build all subprojects by default, and--name
or--filter
flags to target specific ones.Would love to hear your thoughts or whether something similar is already being considered!
Beta Was this translation helpful? Give feedback.
All reactions