Kilix / okami

Primitives react component for calendar
https://okami-website-jaltwitsba.now.sh/
MIT License
19 stars 3 forks source link

Other Calendar Types Implementation #12

Open pkhodaveissi opened 6 years ago

pkhodaveissi commented 6 years ago

Hi and thanks for this great repo

what's the best way to start making other types of calendars like Jalali using your tool?

here's a Jalali Moment Library: https://www.npmjs.com/package/moment-jalaali

wcastand commented 6 years ago

Hi, i don't know Jalali calendar so maybe i'm missing some specificity about it but from what i could see the "easiest" way would be to implement jalali with date-fns (the package we use for dates).

If date-fns supports jalali then okami should be able to use it and format it like any other date system.

You should probably go on date-fns github and make an issue to know if that's possible and how you can help maybe. (if you do an issue, please link it to that one so we can follow more easily and maybe help :))

An other solution would to fork this repo and replace date-fns with moment so you can add moment-jalali library.

pkhodaveissi commented 6 years ago

This is the submitted issue