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

    Function buildOgLocaleTags

    • Build the OpenGraph locale meta tag block — one canonical og:locale for the current language plus an og:locale:alternate for every other supported language. Emitting the alternates lets the Facebook/LinkedIn crawler discover the localized siblings without having to follow the <link rel="alternate" hreflang> chain.

      The output is intentionally indented with two spaces to match the surrounding <head> formatting in the four generators.

      Parameters

      • currentLang: string

        Language being rendered (drives og:locale)

      Returns string

      Multi-line HTML fragment ready to drop into <head>