Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    • Backfill a single HTML string. Pure function โ€” does not touch the filesystem. Returns the (possibly unchanged) HTML plus an action tag describing what happened.

      Contract:

      • If the input already contains any og:locale:alternate tag โ†’ no-op.
      • If no og:locale tag is present โ†’ no-op (we never invent one).
      • If the existing og:locale value is in OG_LOCALE_ALIASES, rewrite it to the canonical form before inserting the alternates list.
      • Otherwise we insert the 13 sibling alternate tags directly after the existing og:locale, using the same leading whitespace so the head block stays visually tidy.

      Parameters

      • html: string

      Returns {
      ย ย ย ย html: string;
      ย ย ย ย action:
      ย ย ย ย ย ย ย ย | "updated"
      ย ย ย ย ย ย ย ย | "skipped-already-complete"
      ย ย ย ย ย ย ย ย | "skipped-no-og-locale"
      ย ย ย ย ย ย ย ย | "skipped-unknown-locale";
      ย ย ย ย lang?: Language;
      ย ย ย ย normalized?: boolean;
      }