Files
NapCatQQ/.pnpm-store/v3/files/c3/06c9a9c71d90ce9f70cf157c05a6594dbc54248947a1d25feab6e16157793bbd681d90d6ff8a6d6e9a785f73d77c05c6b7475d3ad467dc2cb1e70c1d96dcb7
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

12 lines
453 B
Plaintext

export default (function (option, Dayjs, dayjs) {
dayjs.updateLocale = function (locale, customConfig) {
var localeList = dayjs.Ls;
var localeConfig = localeList[locale];
if (!localeConfig) return;
var customConfigKeys = customConfig ? Object.keys(customConfig) : [];
customConfigKeys.forEach(function (c) {
localeConfig[c] = customConfig[c];
});
return localeConfig; // eslint-disable-line consistent-return
};
});