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

27 lines
800 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
2021-12-11 02:00:35 -08:00
// months
new Event('LHBT-geschiedenismaand', 'Progress Pride', 2, month, EventLevel.Month),
// static date
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
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
];