forked from holidays/definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fr.yaml
157 lines (156 loc) · 3.1 KB
/
fr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# French holiday definitions for the Ruby Holiday gem.
#
# Updated: 2013-10-2*.
#
# Changes 2017-05-31:
# - Add additional holidays for Alsace (fr_a) and Moselle (fr_m)
#
# Sources:
# - http://fr.wikipedia.org/wiki/Jours_f%C3%A9ri%C3%A9s_en_France#Les_f.C3.AAtes_f.C3.A9ri.C3.A9es
# - http://vosdroits.service-public.fr/particuliers/F2405.xhtml
# - https://en.wikipedia.org/wiki/Public_holidays_in_France
---
months:
0:
- name: Vendredi saint
regions: [fr_a, fr_m]
function: easter(year)
function_modifier: -2
- name: Pâques
regions: [fr]
function: easter(year)
type: informal
- name: Lundi de Pâques
regions: [fr]
function: easter(year)
function_modifier: 1
- name: Ascension
regions: [fr]
function: easter(year)
function_modifier: 39
- name: Pentecôte
regions: [fr]
function: easter(year)
function_modifier: 49
- name: Lundi de Pentecôte
regions: [fr]
function: easter(year)
function_modifier: 50
type: informal
1:
- name: Jour de l'an
regions: [fr]
mday: 1
5:
- name: Fête du travail
regions: [fr]
mday: 1
- name: Victoire 1945
regions: [fr]
mday: 8
7:
- name: Fête nationale
regions: [fr]
mday: 14
8:
- name: Assomption
regions: [fr]
mday: 15
11:
- name: Toussaint
regions: [fr]
mday: 1
- name: Armistice 1918
regions: [fr]
mday: 11
12:
- name: Noël
regions: [fr]
mday: 25
- name: Saint-Étienne
regions: [fr_a, fr_m]
mday: 26
tests:
- given:
date: '2007-01-01'
regions: ["fr"]
expect:
name: "Jour de l'an"
- given:
date: '2007-04-09'
regions: ["fr"]
expect:
name: "Lundi de Pâques"
- given:
date: '2007-05-01'
regions: ["fr"]
expect:
name: "Fête du travail"
- given:
date: '2007-05-08'
regions: ["fr"]
expect:
name: "Victoire 1945"
- given:
date: '2007-05-17'
regions: ["fr"]
expect:
name: "Ascension"
- given:
date: '2007-05-27'
regions: ["fr"]
expect:
name: "Pentecôte"
- given:
date: '2007-07-14'
regions: ["fr"]
expect:
name: "Fête nationale"
- given:
date: '2007-08-15'
regions: ["fr"]
expect:
name: "Assomption"
- given:
date: '2007-11-01'
regions: ["fr"]
expect:
name: "Toussaint"
- given:
date: '2007-11-11'
regions: ["fr"]
expect:
name: "Armistice 1918"
- given:
date: '2007-12-25'
regions: ["fr"]
expect:
name: "Noël"
- given:
date: '2007-04-08'
regions: ["fr"]
expect:
holiday: false
- given:
date: '2007-05-28'
regions: ["fr"]
expect:
holiday: false
- given:
date: '2007-04-08'
regions: ["fr"]
options: ["informal"]
expect:
name: "Pâques"
- given:
date: '2007-05-28'
regions: ["fr"]
options: ["informal"]
expect:
name: "Lundi de Pentecôte"
- given:
date: '2017-12-26'
regions: ["fr_a", "fr_m"]
options: ["informal"]
expect:
name: "Saint-Étienne"