Skip to content

Commit

Permalink
fix(ar): render fullcalendar in english (#26207)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ankush committed Apr 29, 2024
1 parent b28cc5c commit e4ed1b9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frappe/public/js/frappe/views/calendar/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e4ed1b9

Please sign in to comment.