Natzar Partner API Reference - v1.0.0
    Preparing search index...

    Function normalizeLanguages

    • Coerce whatever an editor, a REST body or a stored row holds into a clean list of base codes: each entry normalized through baseLanguageOf, unknown entries dropped, duplicates removed (first occurrence wins, so the physician's own order is kept), and nothing that is not an array read as empty. The one normalizer every writer runs, so the table only ever holds values the ranking can match.

      Parameters

      • input: unknown

      Returns ("en" | "es" | "de" | "fr" | "it")[]