Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing a Plugin for Persian Calendar (Hijri Shamsi) #2907

Open
ardev0 opened this issue Jan 21, 2025 · 1 comment
Open

Writing a Plugin for Persian Calendar (Hijri Shamsi) #2907

ardev0 opened this issue Jan 21, 2025 · 1 comment

Comments

@ardev0
Copy link

ardev0 commented Jan 21, 2025

Hello,@
I want to create a plugin that replaces the Gregorian calendar with the Persian (Hijri Shamsi) calendar. The plugin should only modify the UI by converting and displaying dates in the desired format, without making any changes to the database.

Here are my questions:

  1. Is it possible for a plugin to alter the structure of the calendar like this?
  2. Can this be implemented in a way that all Gregorian dates displayed in the UI are converted and shown as Persian dates?

What is the best approach to achieve this? Do you have any suggestions or recommended solutions?

@marcelfolaron
Copy link
Contributor

Thank you for the request. I would have to look into that. Right now (3.3) we are using jQuery UIs datepicker which does not have native support as far as I know. In 4.0 we are switching to https://flatpickr.js.org/localization/#using-modules
This seems to be able to support that format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants