Skip to main content

Module convert

Module convert 

Source
Expand description

Raw Workshop locale conversion: parse -> canonical semantics -> emit.

convert parses raw Workshop text in a source locale into locale-independent WIR, then emits it in a target locale. Canonical identities are locale-independent; only the spellings change. Missing target-locale mappings fail explicitly by default (an error, never a guess and never a silent passthrough of another locale’s spelling); fallback is opt-in via ConvertOptions and recorded in Conversion::fallback_ids.

Structs§

Conversion
The result of a raw Workshop locale conversion.
ConvertOptions
Conversion options: opt-in fallback for missing target-locale mappings.

Functions§

convert
Convert raw Workshop text from from to to, parsing with the catalog as the canonical signature context (expected enum domains resolve ambiguous bare members that the catalog documents).
convert_with_context
The context-aware form of convert: context supplies the expected enum domains for argument positions the catalog does not document (e.g. a provider manifest chained with the catalog via crate::signatures::ChainedExpectedDomain).