UEA-PRODEM

This commit is contained in:
2026-06-10 12:14:46 -03:00
parent f54126b9d8
commit 9947565694
5319 changed files with 148520 additions and 129332 deletions
+9 -1
View File
@@ -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.