calendar icon indicating copy to clipboard operation
calendar copied to clipboard

Support for Jalaali system

Open saeidalidadi opened this issue 7 years ago • 3 comments

I have a fork of this component that support jalaali calendar system. if you think that you can have this feature I can revert some naming changes and make a PR.

saeidalidadi avatar Feb 21 '18 08:02 saeidalidadi

I read your fork, it seems not too many changes to support jalaali calendar, I'd like to merge it. I also saw you added RTL support, could you send a PR as well?

yesmeck avatar Feb 22 '18 02:02 yesmeck

Months order inside month panel is not as same as jalaali system, so I will make the PR after fixing that issue

saeidalidadi avatar Feb 22 '18 08:02 saeidalidadi

is there any code to work of local machine you haven't updated for month order? Im thinking about implementing this feature by allowing users to pass in a custom moment library instead, and if the library expects custom prefixes like jYYYY then, map them back (you could probably just fork the library in question, and find a function that identifies if j is used). This way you like only have to make sure that the custom moment is used throughout components and function calls. Except for things like month order. I don't suppose moment supports sharing info about the calendar in use, like a number of month and order. I imagine it just may have to come down to use hacks like probing about what month/days are considered valid.

janat08 avatar May 08 '19 01:05 janat08