WoodcoreMake the numbers vibe

Commands › The document and its citations

#tl The document and its citations

Prints a word the data carries in the report's language, for a caller in the text.

#tl()

Hover an argument: what it does. Hover its value: every possible value. A click keeps the bubble open.

The essentials

The data's wordsA label of the export is German; it is translated where it is a glossary term, else kept.
The glossaryThe engine's words live in calc/i18n/strings.json, in three languages.
Contenttl returns content; tl-str a string, in a context.

Arguments

ArgumentStatusWhat it does, and examples
The line's arguments
required
The German word the export carries.
"Bezugshöhe"a glossary term, translated
"Fichte C24"a material's name, kept as it is

Lines to copy

Minimal call

#tl("Bezugshöhe")

Examples

Example 1
#tl("Bezugshöhe")
The page tl produces, level 2
Example 2
#set-report-language("fr")
#tl("Bezugshöhe") -- #tl("Schneelast")
The page tl produces, level 2

Defined in lib/i18n.typ:327