Skip to content

Commit

Permalink
feat(TN): new country Tunisia
Browse files Browse the repository at this point in the history
  • Loading branch information
seb committed May 6, 2021
1 parent 352ae3b commit 73b3024
Show file tree
Hide file tree
Showing 13 changed files with 1,321 additions and 58 deletions.
58 changes: 0 additions & 58 deletions data/countries/TN.todo

This file was deleted.

102 changes: 102 additions & 0 deletions data/countries/TN.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# @Source https://www.joursferies.fr/pays/tunisie.php
# @Source https://destination-tunis.fr/informations-utiles/les-jours-feries-en-tunisie
# @attrib https://fr.wikipedia.org/wiki/F%C3%AAtes_et_jours_f%C3%A9ri%C3%A9s_en_Tunisie


holidays:
TN:
names:
en: Tunisia
fr: Tunisie
langs:
- ar
zones:
- Africa/Tunis
dayoff: sunday
days:
01-01:
_name: 01-01
01-14:
name:
fr: Fête de la Révolution et de la Jeunesse
ar: 'عيد الثورة و الشباب'
03-20:
name:
fr: Fête de l'indépendance
ar: 'عيد الإستقلال'
04-09:
name:
fr: Journée des Martyrs
ar: 'عيد الشهداء'
12 Rabi al-awwal:
_name: 12 Rabi al-awwal
1 Muharram:
_name: 1 Muharram
1 Shawwal:
_name: 1 Shawwal
10 Dhu al-Hijjah:
_name: 10 Dhu al-Hijjah
05-01:
_name: 05-01
07-25:
name:
fr: Fête de la République
ar: 'عيد الجمهورية'
08-13:
name:
fr: Fête de la Femme et de la Famille
ar: 'عيد المرأة'
10-15:
name:
fr: Fête de l'Évacuation
ar: 'عيد الجلاء'

# states:
# '11':
# name: Tunis
# '12':
# name: Ariana
# '13':
# name: Ben Arous
# '14':
# name: Manouba
# '21':
# name: Nabeul
# '22':
# name: Zaghouan
# '23':
# name: Bizerte
# '31':
# name: Béja
# '32':
# name: Jendouba
# '33':
# name: Kef
# '34':
# name: Siliana
# '41':
# name: Kairouan
# '42':
# name: Kasserine
# '43':
# name: Sidi Bouzid
# '51':
# name: Sousse
# '52':
# name: Monastir
# '53':
# name: Mahdia
# '61':
# name: Sfax
# '71':
# name: Gafsa
# '72':
# name: Tozeur
# '73':
# name: Kebili
# '81':
# name: Gabès
# '82':
# name: Medenine
# '83':
# name: Tataouine
119 changes: 119 additions & 0 deletions test/fixtures/TN-2015.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
[
{
"date": "2015-01-01 00:00:00",
"start": "2014-12-31T23:00:00.000Z",
"end": "2015-01-01T23:00:00.000Z",
"name": "عيد رأس السنة",
"type": "public",
"rule": "01-01",
"_weekday": "Thu"
},
{
"date": "2015-01-03 00:00:00 -0600",
"start": "2015-01-02T17:00:00.000Z",
"end": "2015-01-03T17:00:00.000Z",
"name": "المولد النبويّ",
"type": "public",
"rule": "12 Rabi al-awwal",
"_weekday": "Sat"
},
{
"date": "2015-01-14 00:00:00",
"start": "2015-01-13T23:00:00.000Z",
"end": "2015-01-14T23:00:00.000Z",
"name": "عيد الثورة و الشباب",
"type": "public",
"rule": "01-14",
"_weekday": "Wed"
},
{
"date": "2015-03-20 00:00:00",
"start": "2015-03-19T23:00:00.000Z",
"end": "2015-03-20T23:00:00.000Z",
"name": "عيد الإستقلال",
"type": "public",
"rule": "03-20",
"_weekday": "Fri"
},
{
"date": "2015-04-09 00:00:00",
"start": "2015-04-08T23:00:00.000Z",
"end": "2015-04-09T23:00:00.000Z",
"name": "عيد الشهداء",
"type": "public",
"rule": "04-09",
"_weekday": "Thu"
},
{
"date": "2015-05-01 00:00:00",
"start": "2015-04-30T23:00:00.000Z",
"end": "2015-05-01T23:00:00.000Z",
"name": "يوم العمال",
"type": "public",
"rule": "05-01",
"_weekday": "Fri"
},
{
"date": "2015-07-17 00:00:00 -0600",
"start": "2015-07-16T17:00:00.000Z",
"end": "2015-07-17T17:00:00.000Z",
"name": "عيد الفطر",
"type": "public",
"rule": "1 Shawwal",
"_weekday": "Fri"
},
{
"date": "2015-07-25 00:00:00",
"start": "2015-07-24T23:00:00.000Z",
"end": "2015-07-25T23:00:00.000Z",
"name": "عيد الجمهورية",
"type": "public",
"rule": "07-25",
"_weekday": "Sat"
},
{
"date": "2015-08-13 00:00:00",
"start": "2015-08-12T23:00:00.000Z",
"end": "2015-08-13T23:00:00.000Z",
"name": "عيد المرأة",
"type": "public",
"rule": "08-13",
"_weekday": "Thu"
},
{
"date": "2015-09-23 00:00:00 -0600",
"start": "2015-09-22T17:00:00.000Z",
"end": "2015-09-23T17:00:00.000Z",
"name": "عيد الأضحى",
"type": "public",
"rule": "10 Dhu al-Hijjah",
"_weekday": "Wed"
},
{
"date": "2015-10-14 00:00:00 -0600",
"start": "2015-10-13T17:00:00.000Z",
"end": "2015-10-14T17:00:00.000Z",
"name": "رأس السنة الهجرية",
"type": "public",
"rule": "1 Muharram",
"_weekday": "Wed"
},
{
"date": "2015-10-15 00:00:00",
"start": "2015-10-14T23:00:00.000Z",
"end": "2015-10-15T23:00:00.000Z",
"name": "عيد الجلاء",
"type": "public",
"rule": "10-15",
"_weekday": "Thu"
},
{
"date": "2015-12-23 00:00:00 -0600",
"start": "2015-12-22T17:00:00.000Z",
"end": "2015-12-23T17:00:00.000Z",
"name": "المولد النبويّ",
"type": "public",
"rule": "12 Rabi al-awwal",
"_weekday": "Wed"
}
]
110 changes: 110 additions & 0 deletions test/fixtures/TN-2016.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
[
{
"date": "2016-01-01 00:00:00",
"start": "2015-12-31T23:00:00.000Z",
"end": "2016-01-01T23:00:00.000Z",
"name": "عيد رأس السنة",
"type": "public",
"rule": "01-01",
"_weekday": "Fri"
},
{
"date": "2016-01-14 00:00:00",
"start": "2016-01-13T23:00:00.000Z",
"end": "2016-01-14T23:00:00.000Z",
"name": "عيد الثورة و الشباب",
"type": "public",
"rule": "01-14",
"_weekday": "Thu"
},
{
"date": "2016-03-20 00:00:00",
"start": "2016-03-19T23:00:00.000Z",
"end": "2016-03-20T23:00:00.000Z",
"name": "عيد الإستقلال",
"type": "public",
"rule": "03-20",
"_weekday": "Sun"
},
{
"date": "2016-04-09 00:00:00",
"start": "2016-04-08T23:00:00.000Z",
"end": "2016-04-09T23:00:00.000Z",
"name": "عيد الشهداء",
"type": "public",
"rule": "04-09",
"_weekday": "Sat"
},
{
"date": "2016-05-01 00:00:00",
"start": "2016-04-30T23:00:00.000Z",
"end": "2016-05-01T23:00:00.000Z",
"name": "يوم العمال",
"type": "public",
"rule": "05-01",
"_weekday": "Sun"
},
{
"date": "2016-07-06 00:00:00 -0600",
"start": "2016-07-05T17:00:00.000Z",
"end": "2016-07-06T17:00:00.000Z",
"name": "عيد الفطر",
"type": "public",
"rule": "1 Shawwal",
"_weekday": "Wed"
},
{
"date": "2016-07-25 00:00:00",
"start": "2016-07-24T23:00:00.000Z",
"end": "2016-07-25T23:00:00.000Z",
"name": "عيد الجمهورية",
"type": "public",
"rule": "07-25",
"_weekday": "Mon"
},
{
"date": "2016-08-13 00:00:00",
"start": "2016-08-12T23:00:00.000Z",
"end": "2016-08-13T23:00:00.000Z",
"name": "عيد المرأة",
"type": "public",
"rule": "08-13",
"_weekday": "Sat"
},
{
"date": "2016-09-11 00:00:00 -0600",
"start": "2016-09-10T17:00:00.000Z",
"end": "2016-09-11T17:00:00.000Z",
"name": "عيد الأضحى",
"type": "public",
"rule": "10 Dhu al-Hijjah",
"_weekday": "Sun"
},
{
"date": "2016-10-02 00:00:00 -0600",
"start": "2016-10-01T17:00:00.000Z",
"end": "2016-10-02T17:00:00.000Z",
"name": "رأس السنة الهجرية",
"type": "public",
"rule": "1 Muharram",
"_weekday": "Sun"
},
{
"date": "2016-10-15 00:00:00",
"start": "2016-10-14T23:00:00.000Z",
"end": "2016-10-15T23:00:00.000Z",
"name": "عيد الجلاء",
"type": "public",
"rule": "10-15",
"_weekday": "Sat"
},
{
"date": "2016-12-11 00:00:00 -0600",
"start": "2016-12-10T17:00:00.000Z",
"end": "2016-12-11T17:00:00.000Z",
"name": "المولد النبويّ",
"type": "public",
"rule": "12 Rabi al-awwal",
"_weekday": "Sun"
}
]
Loading

0 comments on commit 73b3024

Please sign in to comment.