telerik / kendo-ui-core

An HTML5, jQuery-based widget library for building modern web apps.
http://www.telerik.com/kendo-ui
Other
2.54k stars 1.9k forks source link

The "ar-SA" locale uses Hijri calendar month names instead of Gregorian calendar month names #6369

Open Garee opened 3 years ago

Garee commented 3 years ago

Reproduction of the problem

Current behavior

Expected/desired behavior

The month name should be "مارس" (March.) This is the Gregorian calendar name.

Environment

Notes

I think the translations require an update in https://github.com/telerik/kendo-ui-core/blob/master/src/cultures/kendo.culture.ar-SA.js.

Thanks.

dmanova commented 3 years ago

Hi @Garee ,

Indeed, the DateTimePicker, DatePicker, and Calendar components support just the layout of a Gregorian calendar. So the corresponding months have 31 days. At the moment we have no future plans to develop a DateTimePicker that supports a Hijri (Persian) type of calendar.

As it comes to the translation any contribution is welcome. You may find more information here: https://docs.telerik.com/kendo-ui/globalization/localization#contribution

Also, I've noticed a few external implementations of the Persian calendar on top of Kendo date pickers are available on the internet.

And another approach that you could try is using the template to render in a different way the cells in the month view, here is the API : https://docs.telerik.com/kendo-ui/api/javascript/ui/datetimepicker/configuration/month#monthcontent