iya-sts
    Preparing search index...

    Variable negotiate

    negotiate: (preferences: string[], lastResort?: string) => Negotiated = ...

    Type Declaration

      • (preferences: string[], lastResort?: string): Negotiated
      • Negotiates a list of preferences, best first, against the catalogs: the first one a catalog answers wins; when none does, the last resort does, and English when that answers nothing either.

        Parameters

        • preferences: string[]

          canonical tags, best first

        • OptionallastResort: string

          the tag to use when no preference is answered (the locale policy's default)

        Returns Negotiated

        the locale, its catalog chain and its direction