EU Parliament Monitor — API Documentation - v0.9.24
    Preparing search index...
    • Read the full markdown body of a translated executive brief for lang from runDir, searching the standard candidate paths (executive-brief_<lang>.mdextended/executive-brief_<lang>.md). SPDX HTML-comment preambles are stripped using the same logic as the SEO-metadata path, so the returned markdown starts at the first real content line (# Headline or similar).

      Returns null when runDir is missing, the language is English, or no candidate file exists. The caller is expected to fall back to the English aggregated body in that case — see render-one.ts.

      Parameters

      • runDir: string

        Absolute run directory

      • lang: LanguageCode

        Target language code (omitted when lang === 'en')

      Returns LocalizedBriefBody | null

      Localized brief body + source file, or null when absent