@hebcal/leyning
    Preparing search index...

    Function getLeyningForHolidayKey

    • Looks up the leyning for a holiday by its (untranslated) reading key — one of the keys in holiday-readings.json.

      Most callers should use getLeyningForHoliday, which derives the key from an event; use this directly only when you already know the key.

      Parameters

      • Optionalkey: string

        reading name from holiday-readings.json, e.g. 'Yom Kippur (Morning)'. Returns undefined if omitted or unknown.

      • OptionalcholHaMoedDay: number

        day within Chol ha-Moed, used to pick the correct maftir for 'Sukkot Shabbat Chol ha-Moed'

      • Optionalil: boolean

        true for the Israel schedule; filters out readings that apply only to the other schedule

      • Optionallanguage: string = 'en'

        language for names and summary (default 'en')

      Returns Leyning | undefined

      the holiday leyning, or undefined if there is no such reading