fix(ar): render fullcalendar in english (#26207)

It doesn't work in arabic - doesn't show anything.

Looks like upstream bug, best we can try for now is to render it in
English instead.
This commit is contained in:
Ankush Menat 2024-04-29 18:42:12 +05:30 committed by GitHub
parent b28cc5ca5b
commit e4ed1b98e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -250,8 +250,13 @@ frappe.views.Calendar = class Calendar {
setup_options(defaults) {
var me = this;
defaults.meridiem = "false";
let lang = frappe.boot.lang;
if (lang == "ar") {
// arabic doesn't work with fullcalendar - doesn't show anything.
lang = "en";
}
this.cal_options = {
locale: frappe.boot.lang,
locale: lang,
header: {
left: "prev, title, next",
right: "today, month, agendaWeek, agendaDay",