Skip to main content

Crate cfarewell

Crate cfarewell 

Source
Expand description

Deterministic locale-correct valedictions for formal correspondence.

The valediction per locale lives as data in tables/closing.json (see tables/README.md for the resolution rule); tests/vectors/*.json is the executable contract every language port runs. The Typst module in typst/ is generated from the same table.

Same input always yields the same output: no models, no I/O.

Functionsยง

available_locales
BCP 47 locale codes with a valediction entry, sorted.
closing
Valediction for a BCP 47 locale. Unknown locales fall back through the base language to English; an explicit override always wins (used for per-workspace closing choices).