hebcal / hebcal-es6

perpetual Jewish Calendar with holidays, Shabbat and holiday candle lighting and havdalah times, Torah readings, and more
https://hebcal.github.io/api/core/
GNU General Public License v2.0
98 stars 14 forks source link

Not showing hebrew language in calanader #449

Closed Tygro101 closed 2 months ago

Tygro101 commented 2 months ago

When using local of 'he' in calendar option I'm always getting results in English i was wandering what do i miss code snippet : https://stackblitz.com/edit/vitejs-vite-mpsr6d?file=src%2FApp.tsx image

image

Thank you 🥇

Tygro101 commented 2 months ago

Ok, i have notice that i should use '.render('he')', i was sure there is native Hebrew support

mjradwin commented 2 months ago

We have updated the documentation to explain more clearly that the desc field contains the untranslated title of this event. Note that these description strings are always in English and will remain stable across releases. To get the title of the event in another language, use the render() method.

https://hebcal.github.io/api/core/classes/Event.html

Tygro101 commented 2 months ago

@mjradwin Thank you very much, your effort is very appreciated!