WoodcoreMake the numbers vibe

Commands › The document and its citations

#t The document and its citations

Prints one of the engine's words in the report's language, for a caller in the text.

#t(, )

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

The essentials

The glossaryThe engine's words live in calc/i18n/strings.json, in three languages.
Contentt returns content; t-str a string, in a context.
Not for a headingHeadings are the engineer's, written by hand.

Arguments

ArgumentStatusWhat it does, and examples
The line's arguments
required
A key of the glossary's engine or templates block.
"governing"«governing» in English
"connection.caption"a template, with its holes
optional
One named argument per hole of the template.
id: "VU-MP-1"the template's hole {id}
sheet: "SL"the hole {sheet}

Lines to copy

Minimal call

#t("governing")

Examples

Example 1
#t("governing")
The page t produces, level 2
Example 2
#set-report-language("fr")
#t("governing") -- #t("with")
The page t produces, level 2

Defined in lib/i18n.typ:311