11 Language
Set the main language of the document with the lang:
tag in _quarto.yml
. Table 11.1 lists a few of the available tags.
Language | Tag |
---|---|
British English | en-GB |
Belgian Dutch | nl-BE |
French | fr-FR |
German | de-DE |
Sometimes you need another language in a report. Quarto provides two options to indicate what language to use. The first syntax is [text in other language]{lang=tag}
. This syntax is useful when you use a different language for a few words of sentences. Use the second syntax when you use a different language for one or more paragraphs.
::: {lang=tag}
Add the text with a different language.
:::
butterfly vlinder butterfly papillon butterfly Schmetterling butterfly
Dit stuk tekst is in het Nederlands geschreven. Je kan zelfs korte stukjes en Français toevoegen.
vlinder papillon Schmetterling.
Note that you cannot use the main document language as a secondary language.