@chnlib/chinese-holiday
Version:
42 lines (40 loc) • 1.61 kB
JavaScript
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/holiday/type.ts
var type_exports = {};
__export(type_exports, {
HOLIDAYS_TYPE: () => HOLIDAYS_TYPE
});
module.exports = __toCommonJS(type_exports);
var HOLIDAYS_TYPE = {
NEW_YEARS_DAY: { en: "New Year's Day", cn: "元旦" },
SPRING_FESTIVAL: { en: "Spring Festival", cn: "春节" },
TOMB_SWEEPING_DAY: { en: "Tomb-sweeping Day", cn: "清明" },
LABOUR_DAY: { en: "Labour Day", cn: "劳动节" },
DRAGON_BOAT_FESTIVAL: { en: "Dragon Boat Festival", cn: "端午节" },
MID_AUTUMN_FESTIVAL: { en: "Mid-autumn Festival", cn: "中秋" },
NATIONAL_DAY: { en: "National Day", cn: "国庆节" },
VICTORY_MEMORIAL_DAY: {
en: "Victory Memorial Day",
cn: "抗日战争胜利纪念日"
}
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
HOLIDAYS_TYPE
});