This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Zaimki/locale/en/events.js

55 lines
2.7 KiB
JavaScript

const {Event, day, week, month, dayYear, EventLevel} = require("../../src/calendar/helpers");
module.exports = [
// months
new Event('LGBT History Month (UK/Hungary/Netherlands)', 'Progress Pride', 2, month, EventLevel.Month),
new Event('LGBT History Month (US/Canada/Australia)', 'Progress Pride', 10, month, EventLevel.Month),
new Event('LGBT History Month (Ireland/Germany)', 'Progress Pride', 5, month, EventLevel.Month),
// static date
new Event('Harvey Milk Day', null, 5, day(22), EventLevel.MajorDay),
new Event('Pink Triangle Day (Canada)', null, 2, day(14), EventLevel.MajorDay),
new Event('Marriage Equality Day (US)', null, 6, day(26), EventLevel.MajorDay),
new Event('Marriage Equality Day (England and Wales)', null, 3, day(13), EventLevel.MajorDay),
new Event('Marriage Equality Day (Scotland)', null, 12, day(16), EventLevel.MajorDay),
new Event('Marriage Equality Day (Northern Ireland)', null, 1, day(13), EventLevel.MajorDay),
new Event('Marriage Equality Day (Canada)', null, 7, day(20), EventLevel.MajorDay),
new Event('Marriage Equality Day (Australia)', null, 12, day(9), EventLevel.MajorDay),
new Event('Marriage Equality Day (New Zealand)', null, 8, day(19), EventLevel.MajorDay),
new Event('Marriage Referendum Anniversary (Ireland)', null, 5, day(22), EventLevel.MajorDay),
new Event('National Freedom to Marry Day (US)', null, 2, day(12), EventLevel.MajorDay),
new Event('National Transgender HIV Testing Day (US)', 'Transgender', 4, day(18), EventLevel.MajorDay),
new Event('National HIV Testing Day (US)', null, 6, day(27), EventLevel.MajorDay),
new Event('National Black HIV Testing Day (US)', null, 2, day(7), EventLevel.MajorDay),
new Event('Anniversary of the Decriminalisation of Homosexuality in England and Wales (1967)', null, 7, day(27), EventLevel.MajorDay),
new Event('Anniversary of the Decriminalisation of Homosexuality in Scotland (1981)', null, 2, day(1), EventLevel.MajorDay),
// dynamic date
new Event('Wear it Purple Day (Australia)', null, 8, function* (monthDays) {
let lastFriday = null;
for (let d of monthDays) {
if (d.dayOfWeek === 5) {
lastFriday = d;
}
}
yield lastFriday;
}, EventLevel.MajorDay),
new Event('Spirit Day', null, 10, function* (monthDays) {
let fridays = 0;
for (let d of monthDays) {
if (d.dayOfWeek === 5) {
fridays++;
if (fridays === 3) {
yield d;
return;
}
}
}
}, EventLevel.MajorDay),
// one-off events
new Event('Day of Silence', null, 4, dayYear(23, 2021), EventLevel.MajorDay),
];