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

Idea: Adding Support for Multi-Regional Calendar #121

Open
mahdiit opened this issue Jul 1, 2018 · 5 comments
Open

Idea: Adding Support for Multi-Regional Calendar #121

mahdiit opened this issue Jul 1, 2018 · 5 comments

Comments

@mahdiit
Copy link

mahdiit commented Jul 1, 2018

Hey
i am working with this calendar many years, nice and super fast, it is simple but perfect design
but we have a programs that need to support other country calendar, like Persian (also called the Solar Hejri calendar or Shamsi Hijri calendar,) that will use in some asian countries like Afghanistan, Iran and so on.

so i decide add some code to base calendar js and share it with people around the world with different culture to use it.

Steps you need is:

var datepicker_fa_IR = {
    calendar: JalaliDate,
    months: ['فروردین', 'اردیبهشت', 'خرداد', 'تیر', 'مرداد', 'شهریور', 'مهر', 'آبان', 'آذر', 'دی', 'بهمن', 'اسفند'],
    days: ['یکشنبه', 'دوشنبه', 'سه شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'],
    months_abbr: ['فروردین', 'اردیبهشت', 'خرداد', 'تیر', 'مرداد', 'شهریور', 'مهر', 'آبان', 'آذر', 'دی', 'بهمن', 'اسفند'],
    days_abbr: ['ی', 'د', 'س', 'چ', 'پ', 'ج', 'ش'],
    first_day_of_week: 6,
    weekend_days: [5],
    format: 'Y/m/d',
    lang_clear_date: 'پاک کردن',
    readonly_element: false,
    show_select_today: 'امروز',
    //offset: [2, 230],
    open_icon_only: true
};

Final result:
preview

@tareksherif23
Copy link

Hello @mahdiit i would be really thankful if you guide me to implement the islamic hijri calendar from the files you provided

@mahdiit
Copy link
Author

mahdiit commented Jan 6, 2020 via email

@mahdiit
Copy link
Author

mahdiit commented Jan 7, 2020 via email

@tareksherif23
Copy link

is there a way to get back time with jalali date it returns year/month/day only

@AliMahmodi
Copy link

Could you please fork and make a new persian zebra datepicker ?
thanks

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

3 participants