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/nl/events.js

29 lines
858 B
JavaScript
Raw Normal View History

2021-12-11 02:00:35 -08:00
const {Event, day, week, month, dayYear, EventLevel, Day} = require("../../src/calendar/helpers");
2021-09-16 03:52:10 -07:00
module.exports = [
2021-08-14 07:22:30 -07:00
// --- months ---
2021-12-11 02:00:35 -08:00
new Event('LHBT-geschiedenismaand', 'Progress Pride', 2, month, EventLevel.Month),
// --- static date ---
2021-12-11 02:00:35 -08:00
new Event('Marriage Equality Day (Nederland)', '_hrc', 4, day(1), EventLevel.Day),
new Event('Marriage Equality Day (België)', '_hrc', 6, day(1), EventLevel.Day),
// --- dynamic date ---
// second Friday of December
2021-12-11 02:00:35 -08:00
new Event('Paarse Vrijdag (Nederland)', null, 12, function* (monthDays) {
let fridays = 0;
for (let d of monthDays) {
if (d.dayOfWeek === 5) {
fridays++;
if (fridays === 2) {
yield d;
return;
}
}
}
}, EventLevel.Day),
2021-08-14 07:22:30 -07:00
];