@hebcal/core 3.45.2 → 3.45.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,7 +6,7 @@ location. Torah readings (Parashat HaShavua), Daf Yomi, and counting of the Omer
6
6
  also be specified. Hebcal also includes algorithms to calculate yahrzeits,
7
7
  birthdays and anniversaries.
8
8
 
9
- [![Build Status](https://circleci.com/gh/hebcal/hebcal-es6.svg?style=svg)](https://circleci.com/gh/hebcal/hebcal-es6)
9
+ [![Build Status](https://github.com/hebcal/hebcal-es6/actions/workflows/node.js.yml/badge.svg)](https://github.com/hebcal/hebcal-es6/actions/workflows/node.js.yml)
10
10
 
11
11
  Hebcal was created in 1994 by Danny Sadinoff as a Unix/Linux program written in C, inspired
12
12
  by similar functionality written in Emacs Lisp. The initial JavaScript port was released in
@@ -39,7 +39,7 @@ const events = HebrewCalendar.calendar(options);
39
39
  for (const ev of events) {
40
40
  const hd = ev.getDate();
41
41
  const date = hd.greg();
42
- console.log(date.toLocaleDateString(), ev.render(), hd.toString());
42
+ console.log(date.toLocaleDateString(), ev.render('en'), hd.toString());
43
43
  }
44
44
  ```
45
45
 
@@ -526,7 +526,7 @@ including ordinal e.g. `'15th of Cheshvan, 5769'`.
526
526
  import {HDate, months} from '@hebcal/core';
527
527
 
528
528
  const hd = new HDate(15, months.CHESHVAN, 5769);
529
- console.log(hd.render()); // '15th of Cheshvan, 5769'
529
+ console.log(hd.render('en')); // '15th of Cheshvan, 5769'
530
530
  console.log(hd.render('he')); // '15 חֶשְׁוָן, 5769'
531
531
  ```
532
532
  <a name="HDate+renderGematriya"></a>
@@ -943,7 +943,7 @@ Returns (translated) description of this event
943
943
  **Example**
944
944
  ```js
945
945
  const ev = new Event(new HDate(6, 'Sivan', 5749), 'Shavuot', flags.CHAG);
946
- ev.render(); // 'Shavuot'
946
+ ev.render('en'); // 'Shavuot'
947
947
  ev.render('he'); // 'שָׁבוּעוֹת'
948
948
  ev.render('ashkenazi'); // 'Shavuos'
949
949
  ```
@@ -1078,7 +1078,7 @@ import {HDate, HebrewDateEvent, months} from '@hebcal/core';
1078
1078
 
1079
1079
  const hd = new HDate(15, months.CHESHVAN, 5769);
1080
1080
  const ev = new HebrewDateEvent(hd);
1081
- console.log(ev.render()); // '15th of Cheshvan, 5769'
1081
+ console.log(ev.render('en')); // '15th of Cheshvan, 5769'
1082
1082
  console.log(ev.render('he')); // 'ט״ו חֶשְׁוָן תשס״ט'
1083
1083
  ```
1084
1084
  <a name="HebrewDateEvent+renderBrief"></a>
@@ -2499,7 +2499,7 @@ const events = HebrewCalendar.calendar(options);
2499
2499
  for (const ev of events) {
2500
2500
  const hd = ev.getDate();
2501
2501
  const date = hd.greg();
2502
- console.log(date.toLocaleDateString(), ev.render(), hd.toString());
2502
+ console.log(date.toLocaleDateString(), ev.render('en'), hd.toString());
2503
2503
  }
2504
2504
  ```
2505
2505
  <a name="HebrewCalendar.getBirthdayOrAnniversary"></a>