UNPKG

@cainiaofe/cn-utils

Version:

菜鸟前端基础工具库

29 lines (28 loc) 953 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var dayjs_1 = tslib_1.__importDefault(require("dayjs")); require("dayjs/locale/en"); require("dayjs/locale/es"); require("dayjs/locale/fr"); require("dayjs/locale/ja"); require("dayjs/locale/ko"); require("dayjs/locale/pl"); require("dayjs/locale/pt"); require("dayjs/locale/pt-br"); require("dayjs/locale/ru"); require("dayjs/locale/tr"); require("dayjs/locale/zh-cn"); require("dayjs/locale/zh-hk"); require("dayjs/locale/zh-tw"); require("dayjs/locale/zh"); require("dayjs/locale/en"); // 扩展语种中dayjs部分的支持 if (window._PANDA_EXUI) { Object.keys(window._PANDA_EXUI).forEach(function (lang) { var extraUiDayjs = window._PANDA_EXUI[lang].dayjs; if (extraUiDayjs) { dayjs_1.default.locale(typeof extraUiDayjs === 'function' ? extraUiDayjs() : extraUiDayjs, undefined, true); } }); }