kizitonwose / Calendar

A highly customizable calendar view and compose library for Android and Kotlin Multiplatform.
MIT License
4.67k stars 505 forks source link

Support other calenders than the gregorian #455

Closed arijit4 closed 1 year ago

arijit4 commented 1 year ago

Feature

I want to implement a Bangla calender in my app. Bangla calender doesn’t match the dates on gregorian calender. So, it would be great if you could add suuport to add so.

Tech (if applicable)

I've thought of a simple approach to this problem. The steps can be:

Note: I will provide the informations (eg. firstDayOfMonth). I only need the UI to be implemented.

Hope you understand and like my concept.

kizitonwose commented 1 year ago

Hey, thanks for the suggestion. Unfortunately, there are no plans to add/support more calendar types at the moment so I will have to close this. Sorry.

arijit4 commented 1 year ago

Is there any way that I could use to implement this myself with your library?

kizitonwose commented 1 year ago

The data module is responsible for the month/date generation and published separately. You can pull the data module into your project, make the changes there and exclude the module in the calendar dependency.

Alternatively, you can just fork the library and make the required changes.