@hebcal/hdate
    Preparing search index...

    Function getMonthName

    • Returns a transliterated string name of Hebrew month in year, for example 'Elul' or 'Cheshvan'.

      The year matters only for the 12th month, which is named 'Adar' in a common year and 'Adar I' in a leap year. To translate the result into another locale, pass it to Locale.gettext.

      Parameters

      • month: number

        Hebrew month (e.g. months.TISHREI)

      • year: number

        Hebrew year

      Returns MonthName

      transliterated month name

      if month is out of range 1-14

      import {getMonthName, months} from '@hebcal/hdate';
      getMonthName(months.CHESHVAN, 5769); // 'Cheshvan'
      getMonthName(months.ADAR_I, 5784); // 'Adar I' (leap year)
      getMonthName(months.ADAR_I, 5783); // 'Adar' (common year)