An interactive, in-browser tour of the Typst typesetting language. Each chapter pairs a short explanation with a live editor and preview, so you can learn Typst by writing it.
Content is discovered automatically from the content/ directory, so adding a language is mostly a
matter of adding files:
-
Copy a content directory. Duplicate
content/entocontent/<locale>(e.g.content/fr) and translate the chapter files. Each chapter folder holds anindex.mdand optionally atemplate.typ,solution.typ, andrefs.yaml. Translate only the file contents — the file and folder names must stay unchanged. -
Update
tour.ts. Incontent/<locale>/tour.ts, setmeta.localeto the new locale code andmeta.labelto its display name, then translate the part and chapter titles. Keep the chapterkeyvalues unchanged; they must match the folder names. -
Add UI strings. Add an entry for the new locale to the
translationsobject incontent/i18n.ts.