From 87556f1cca2b4c3f5e575a100b2c30a43506e95f Mon Sep 17 00:00:00 2001 From: Avris Date: Fri, 1 Oct 2021 10:22:30 +0200 Subject: [PATCH] [en][calendar] hate crime week, deaf week --- locale/en/events.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/locale/en/events.js b/locale/en/events.js index c7cab3ee..7395372b 100644 --- a/locale/en/events.js +++ b/locale/en/events.js @@ -107,7 +107,26 @@ module.exports = [ } }, EventLevel.Day), + new Event('Hate Crime Awareness Week (UK)', null, 10, function* (monthDays) { + let saturdays = 0; + for (let d of monthDays) { + if (d.dayOfWeek === 6) { + saturdays++; + } + if (saturdays === 2 || (saturdays === 3 && d.dayOfWeek === 6)) { + yield d; + } + } + }, EventLevel.Week), + // one-off events new Event('Day of Silence', null, 4, dayYear(23, 2021), EventLevel.Day), new Event('LGBTQIA+ Equal Pay Awareness Day', null, 6, dayYear(16, 2021), EventLevel.Day), + new Event('Deaf LGBTQ Awareness Week', null, 4, function* (monthDays) { + for (let d of monthDays) { + if (d.day >= 11 && d.day <= 17 && d.year === 2021) { + yield d; + } + } + }, EventLevel.Week), ];