EU Parliament Monitor — API Documentation - v0.8.43
    Preparing search index...

    Function getArticleFilename

    • Build the canonical filename for an article in a given language. English uses the bare stem (2026-01-15-breaking-en.html); other languages share the same pattern so every language is a first-class variant. Matches the existing news/<date>-<slug>-<lang>.html convention.

      Parameters

      • articleSlug: string

        Slug of the form <date>-<type> (no extension)

      • lang: LanguageCode

        Target language code

      Returns string

      Filename string without any directory prefix