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

57 lines
2.5 KiB
JavaScript
Raw Normal View History

2021-12-03 03:58:23 -08:00
const {Event, day, week, month, dayYear, EventLevel, Day} = require("../../src/calendar/helpers");
2021-11-02 07:10:04 -07:00
2021-09-16 03:52:10 -07:00
module.exports = [
2021-11-02 07:10:04 -07:00
// months
2021-11-02 07:12:47 -07:00
new Event('Mois de l\'histoire des LGBT (Canada/USA/Australia)', 'Progress Pride', 10, month, EventLevel.Month),
2021-11-02 07:10:04 -07:00
// static date
new Event('Journée du triangle rose (Canada)', null, 2, day(14), EventLevel.Day),
new Event('Journée de le mariage pour tous (Canada)', null, 7, day(20), EventLevel.Day),
new Event('Journée de le mariage pour tous (France)', null, 5, day(18), EventLevel.Day),
new Event('Journée de le mariage pour tous (Belgique)', null, 6, day(1), EventLevel.Day),
new Event('Journée de sensibilisation au VIH/sida des communautés noires (Canada/USA)', '_red-ribbon', 2, day(7), EventLevel.Day, ['aids']),
2021-11-02 08:04:56 -07:00
new Event('Journée de sensibilité à la bispiritualité', 'Two Spirit', 7, day(11), EventLevel.Day, ['two spirit']),
2021-11-02 07:10:04 -07:00
new Event('Journée de sensibilisation aux femmes, aux filles et aux personnes bispirituelles autochtones disparues et assassinées (Canada/USA)', 'Two Spirit', 5, day(5), EventLevel.Day, ['two spirit']),
new Event('Journée de la sensibilisation du VIH/sida et au vieillissement (Canada/USA)', '_red-ribbon', 9, day(18), EventLevel.Day, ['aids']),
2021-11-02 15:26:15 -07:00
new Event('Anniversaire de la décrimilisation de l\'homosexualité (Canada)', null, 6, day(27), EventLevel.Day),
2021-11-02 07:10:04 -07:00
2021-11-02 07:10:18 -07:00
// dynamic date
2021-11-02 07:12:47 -07:00
new Event('Journée d\'esprit (Canada/USA)', null, 10, function* (monthDays) {
2021-11-02 07:10:04 -07:00
let thursdays = 0;
for (let d of monthDays) {
if (d.dayOfWeek === 4) {
thursdays++;
if (thursdays === 3) {
yield d;
return;
}
}
}
}, EventLevel.Day),
2021-08-14 07:22:30 -07:00
2021-12-03 01:55:08 -08:00
// Dec 1 - 7
new Event('Semaine autochtone de sensibilisation au sida (Canada)', '_red-ribbon', 12, week(function* (monthDays) {
2021-12-03 01:55:08 -08:00
for (let d of monthDays) {
if (d.day <= 7) {
yield d;
}
}
2021-12-03 02:16:41 -08:00
}), EventLevel.Week, ['aids']),
2021-12-03 01:55:08 -08:00
// Nov 24 - Dec 1
new Event('Semaine de sensibilité à l\'épidémie de sida (Canada)', '_red-ribbon', 11, function* (monthDays) {
2021-12-03 01:55:08 -08:00
let lastDay = null;
for (let d of monthDays) {
if (d.day >= 24) {
yield d;
}
lastDay = d;
}
yield new Day(lastDay.year, 12, 1);
2021-12-03 02:16:41 -08:00
}, EventLevel.Week, ['aids']),
2021-12-03 01:55:08 -08:00
2021-11-02 15:22:40 -07:00
// one-off events
new Event('Journée de le mariage pour tous (Suisse)', null, 7, dayYear(1, 2022), EventLevel.Day),
2021-08-14 07:22:30 -07:00
];