File
holidays.ts
lib/holidays.ts · 6741 bytes · Open on GitHub
export type MilitaryHoliday = {
name: string;
country: string;
description: string;
tone: "solemn" | "celebratory" | "reflective";
};
type FixedHoliday = MilitaryHoliday & {
month: number;
day: number;
};
type FloatingHolidayFn = (year: number) => { month: number; day: number };
type FloatingHoliday = MilitaryHoliday & {
getDate: FloatingHolidayFn;
};
const FIXED_HOLIDAYS: FixedHoliday[] = [
{
month: 1,
day: 27,
name: "International Holocaust Remembrance Day",
country: "International",
description:
"Anniversary of the liberation of Auschwitz-Birkenau. Honors the memory of the six million Jewish victims of the Holocaust.",
tone: "solemn",
},
{
month: 5,
day: 8,
name: "Victory in Europe Day",
country: "UK/Norway",
description:
"Marks the formal acceptance of Germany's unconditional surrender in WWII. Norway celebrates Liberation Day.",
tone: "reflective",
},
{
month: 6,
day: 6,
name: "D-Day Anniversary",
country: "US/UK",
description:
"Anniversary of the Normandy landings in 1944 — the largest seaborne invasion in history.",
tone: "solemn",
},
{
month: 6,
day: 8,
name: "Norwegian Armed Forces Day",
country: "Norway",
description:
"Celebrates the Norwegian Armed Forces and honors those who serve and have served.",
tone: "celebratory",
},
{
month: 6,
day: 25,
name: "Armed Forces Day",
country: "UK",
description:
"A chance for the nation to show support for the men and women who make up the Armed Forces community.",
tone: "celebratory",
},
{
month: 7,
day: 4,
name: "Independence Day",
country: "US",
description:
"Celebrates the adoption of the Declaration of Independence. For veterans, a day to reflect on the freedoms they swore to defend.",
tone: "celebratory",
},
{
month: 8,
day: 7,
name: "Purple Heart Day",
country: "US",
description:
"Honors the men and women who were wounded or killed while serving. The Purple Heart is the oldest military award still given.",