-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How does one get the Sedra name in Hebrew? #5
Comments
It looks like Here are two options for now:
import {HebrewCalendar} from '@hebcal/core';
const options = {
locale: 'he',
sedrot: true,
noHolidays: true,
};
const events = HebrewCalendar.calendar(options);
for (const ev of events) {
const hd = ev.getDate();
const date = hd.greg();
console.log(date.toLocaleDateString(), ev.render());
}
import {Locale, Sedra, ParshaEvent} from '@hebcal/core';
// specify default locale so you don't need to pass a locale argument to render()
Locale.useLocale('he');
const sedra = new Sedra(5780, true);
const hd = new HDate(new Date(2020, 6, 7));
const parsha = sedra.get(hd);
const ev = new ParshaEvent(hd, parsha);
console.log(ev.render()); |
mjradwin
added a commit
that referenced
this issue
Jul 7, 2020
OK, we've published const {Locale, Sedra, HDate} = require('@hebcal/core');
Locale.useLocale('he');
const sedra = new Sedra(5781, false);
console.log(sedra.getString(new HDate(new Date(2021, 3, 24))));
// פרשת אַחֲרֵי מוֹת־קְדשִׁים |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All the ways I try to generate it render it in English.
The text was updated successfully, but these errors were encountered: