Skip to main content

Module request

Module request 

Source
Expand description

Translation request/response data structures.

These types describe the inputs and outputs of the translation engine independently of any particular AI provider. They are intentionally small and serializable so they can be reused by CLI helpers, integration tests, and structured logging.

Structs§

GlossaryEntry
User-provided glossary entry, parsed from a UTF-8 glossary file.
TerminologyEntry
A single terminology entry returned by the AI extraction pass.
TranslationBatch
A batch of cues sent in a single AI translation request.
TranslationCue
One cue in a translation request, identified by its UUIDv7 cue ID.
TranslationOutcome
Outcome metadata for a successful translation pass.
TranslationRequest
Input parameters for translating a single subtitle file.
TranslationResult
Result returned by the engine after translating a single subtitle file.

Functions§

merge_terminology
Merge a generated terminology map with user glossary entries.

Type Aliases§

TerminologyMap
Effective terminology map (source term -> target term).