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:
parent
b28cc5ca5b
commit
e4ed1b98e4
1 changed files with 6 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue