UEA-PRODEM
This commit is contained in:
+9
-1
@@ -74,7 +74,15 @@ function DayPicker(props) {
|
||||
noonSafe,
|
||||
overrides: dateLibProp,
|
||||
});
|
||||
return (react_1.default.createElement(index_js_1.DayPicker, { ...restProps, locale: localeProp ?? exports.faIR, numerals: numerals ?? "arabext", dir: dir ?? "rtl", dateLib: dateLib }));
|
||||
const locale = localeProp ?? exports.faIR;
|
||||
return (react_1.default.createElement(index_js_1.DayPicker, { ...restProps, locale: locale, numerals: numerals ?? "arabext", dir: dir ?? "rtl", dateLib: dateLib, formatters: {
|
||||
formatWeekdayName: (date, _options, lib) => {
|
||||
const activeLib = lib ?? dateLib;
|
||||
const isPersian = activeLib.options.locale?.code?.startsWith("fa");
|
||||
return activeLib.format(date, isPersian ? "ccccc" : "cccccc");
|
||||
},
|
||||
...props.formatters,
|
||||
} }));
|
||||
}
|
||||
/**
|
||||
* Returns the date library used in the Persian calendar.
|
||||
|
||||
Reference in New Issue
Block a user