@blocklet/payment-react
Version:
Reusable react components for payment kit v2
15 lines (14 loc) • 471 B
JavaScript
import dayjs from "dayjs";
import duration from "dayjs/plugin/duration";
import localizedFormat from "dayjs/plugin/localizedFormat";
import relativeTime from "dayjs/plugin/relativeTime";
import timezone from "dayjs/plugin/timezone";
import utc from "dayjs/plugin/utc";
import("dayjs/locale/en");
import("dayjs/locale/zh");
dayjs.extend(relativeTime);
dayjs.extend(localizedFormat);
dayjs.extend(duration);
dayjs.extend(utc);
dayjs.extend(timezone);
export default dayjs;