Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(core): add missing localizedFormat plugin support for dayjs (#4079)
白熱629db60b2fee
diff --git a/packages/core/src/shared/dayjs.ts b/packages/core/src/shared/dayjs.tsindex 310c7a54f7..469bb1dc4a 100644--- a/packages/core/src/shared/dayjs.ts+++ b/packages/core/src/shared/dayjs.ts@@ -18,6 +18,7 @@ import dayjs from 'dayjs';import advancedFormat from 'dayjs/plugin/advancedFormat';import customParseFormat from 'dayjs/plugin/customParseFormat';import localeData from 'dayjs/plugin/localeData';+import localizedFormat from 'dayjs/plugin/localizedFormat';import utc from 'dayjs/plugin/utc';import weekday from 'dayjs/plugin/weekday';import weekOfYear from 'dayjs/plugin/weekOfYear';@@ -30,5 +31,6 @@ dayjs.extend(localeData);dayjs.extend(weekOfYear);dayjs.extend(weekYear);dayjs.extend(utc);+dayjs.extend(localizedFormat);export { dayjs };