learn-content-engine - v0.13.1
    Preparing search index...

    Function resolveLanguagePair

    learn-content-engine — framework-agnostic content parse/transform engine.

    Public API: the source→canonical boundary. A source adapter turns raw content (today: a single-JSON lesson) into the canonical internal lesson object (ContentLesson); the manifest transform projects a raw manifest.yaml set into a canonical ContentSetEntry.

    The library is framework-agnostic: no fetch, no database, no UI. The consumer supplies the raw bytes + set context and keeps network/persistence.

    • Resolve the language pair from a parsed manifest set, honouring the pre-v1.2 language alias and the "en" default for source_language (mirrors the backend ContentSet model).

      Parameters

      • parsed: { language?: string; source_language?: string; target_language?: string }

      Returns { source: string; target: string }