jalaali / moment-jalaali

A Jalaali (Jalali, Persian, Khorshidi, Shamsi) calendar system plugin for moment.js.
MIT License
938 stars 162 forks source link

how can I change the months label to Dari/Farsi for Afghanistan? #225

Open asifgulistani opened 3 years ago

asifgulistani commented 3 years ago

The following list is the month's name in order. 'حمل_ثور_جوزا_سرطان_اسد_سنبله_میزان_عقرب_قوس_جدی_دلو_حوت' Is there any way to globally config these month's names?

behrang commented 3 years ago

Read moment's doc here for month customization: https://github.com/jalaali/moment-jalaali/issues/225 It may work.

I'm curious to know whether Persian calendar in Iran and Afghanistan are the same. To my knowledge, Jalaali algorithm and its breakpoints is based on Tehran time. I don't know if it's the same for Afghanistan or not. Do you know?

asifgulistani commented 3 years ago

Yes, in Afghanistan we use Shamsi calendar as same they use in Iran but with different month name like they say فروردین ,we say حمل.

For your more information… Afghanistan has two national languages

  1. Dari/Persian
  2. Pashto Fortunately the both language Shamsi Calendar with Kabul time zone. Months name in Dari and Pashto are listed Here https://fa.m.wikipedia.org/wiki/%D8%A7%D9%84%DA%AF%D9%88:%D9%85%D8%A7%D9%87%E2%80%8C%D9%87%D8%A7%DB%8C_%D9%87%D8%AC%D8%B1%DB%8C_%D8%AE%D9%88%D8%B1%D8%B4%DB%8C%D8%AF%DB%8C
behrang commented 3 years ago

Ok, thanks. Do they completely match? For example the last day of the year, does it match in different years?

asifgulistani commented 3 years ago

Yes, they completely match. As mentioned earlier, the only difference is the months name.

behrang commented 3 years ago

Ok, thanks.

If you found the way to change month names, please add it here, so others can use your solution.

nabc commented 2 years ago

Hi, you can customize month name using moment's updateLocale, read more in here