Closed vnali closed 3 years ago
this feature is kind of related to https://github.com/craftcms/cms/issues/5000. is there any chance to have this feature @brandonkelly?
Yep, also in the works for 3.4.
Pushing this back to 4.0, because it is going to introduce breaking changes.
Craft CMS calendar is a jquery ui calendar and it only translates calendar for different languages in: https://github.com/craftcms/cms/blob/develop/src/web/assets/datepickeri18n/DatepickerI18nAsset.php but translation is not always useful. some authors don't know Gregorian format well. In other content management systems like Drupal or Wordpress, we can have different calendar systems by patching core or 3rd party modules.
I tried this steps only for demonstration and i was able to show user a Persian calendar.
i found a Persian calendar library and put js and css files in @lib/datepicker-i18n
added some lines like
to DatepickerI18nAsset.php
and i have this calendar which author knows well (he sees year, month, day in Persian calendar system like 1398/07/04)
but there are some problems:
at last i think that is not possible for Craft CMS team to find a robust calendar library for every calendar systems and hard code it in Craft CMS. but maybe it is not a bad idea to: