Skip to content

Commit

Permalink
Merge branch 'main' into add-malaysia-holiday
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsvanpach authored Jun 15, 2024
2 parents c929e4b + b369798 commit dcdd813
Show file tree
Hide file tree
Showing 79 changed files with 5,033 additions and 347 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.6.0
uses: dependabot/fetch-metadata@v2.1.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fix-php-code-style-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
ref: ${{ github.head_ref }}

- name: Fix PHP code style issues
uses: aglipanci/laravel-pint-action@2.3.1
uses: aglipanci/laravel-pint-action@2.4

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.1'
coverage: none

- name: Install composer dependencies
Expand All @@ -21,4 +21,4 @@ jobs:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}

- name: Run PHPStan
run: ./vendor/bin/phpstan --error-format=github
run: ./vendor/bin/phpstan
6 changes: 3 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ jobs:
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
fail-fast: true
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.3, 8.2, 8.1]
stability: [prefer-lowest, prefer-stable]
carbon: [2.72, 3.0]
carbon: [2.72, 3.2]

name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }} - Carbon ${{ matrix.carbon }}
name: P${{ matrix.php }} - ${{ matrix.stability }} - Carbon ${{ matrix.carbon }}

steps:
- name: Checkout code
Expand Down
84 changes: 84 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,90 @@

All notable changes to `holidays` will be documented in this file.

## 1.11.0 - 2024-06-13

### What's Changed

* Add holidays for korea by @jws1837 in https://github.com/spatie/holidays/pull/222
* Update Sweden.php to always use leading zero in day by @adevade in https://github.com/spatie/holidays/pull/224
* Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0 by @dependabot in https://github.com/spatie/holidays/pull/225
* Add greece holidays by @lowv-developer in https://github.com/spatie/holidays/pull/226
* Update README.md to remove named parameter from make by @arnebr in https://github.com/spatie/holidays/pull/227
* Add Holidays - Pakistan by @muhammad-nauman in https://github.com/spatie/holidays/pull/19
* Update Slovakia.php by @hamrak in https://github.com/spatie/holidays/pull/228
* Add Moroccan Holidays by @YazidKHALDI in https://github.com/spatie/holidays/pull/56
* Add Benin Holidays by @Massoud114 in https://github.com/spatie/holidays/pull/145
* Add indian holidays by @webmavensteam in https://github.com/spatie/holidays/pull/220

### New Contributors

* @jws1837 made their first contribution in https://github.com/spatie/holidays/pull/222
* @muhammad-nauman made their first contribution in https://github.com/spatie/holidays/pull/19
* @hamrak made their first contribution in https://github.com/spatie/holidays/pull/228
* @YazidKHALDI made their first contribution in https://github.com/spatie/holidays/pull/56
* @Massoud114 made their first contribution in https://github.com/spatie/holidays/pull/145
* @webmavensteam made their first contribution in https://github.com/spatie/holidays/pull/220

**Full Changelog**: https://github.com/spatie/holidays/compare/1.10.0...1.11.0

## 1.10.0 - 2024-04-29

### What's Changed

* add Tunisia Holidays by @mr-wolf-gb in https://github.com/spatie/holidays/pull/109
* Add holidays for Ecuador by @insoutt in https://github.com/spatie/holidays/pull/218
* Bump aglipanci/laravel-pint-action from 2.3.1 to 2.4 by @dependabot in https://github.com/spatie/holidays/pull/221
* feat: remove canceled day of the rest from `Slovakia` country by @patressz in https://github.com/spatie/holidays/pull/223

### New Contributors

* @mr-wolf-gb made their first contribution in https://github.com/spatie/holidays/pull/109
* @insoutt made their first contribution in https://github.com/spatie/holidays/pull/218

**Full Changelog**: https://github.com/spatie/holidays/compare/1.9.1...1.10.0

## 1.9.1 - 2024-04-02

### What's Changed

* Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 by @dependabot in https://github.com/spatie/holidays/pull/215
* Fix the Holidays in French speaking Switzerland by @OlinB in https://github.com/spatie/holidays/pull/217

### New Contributors

* @dependabot made their first contribution in https://github.com/spatie/holidays/pull/215
* @OlinB made their first contribution in https://github.com/spatie/holidays/pull/217

**Full Changelog**: https://github.com/spatie/holidays/compare/1.9.0...1.9.1

## 1.9.0 - 2024-03-22

### What's Changed

* Implement Islamic calendar by @Nielsvanpach in https://github.com/spatie/holidays/pull/214
* Add holidays for Bosnia And Herzegovina by @DesaBL in https://github.com/spatie/holidays/pull/203

### New Contributors

* @DesaBL made their first contribution in https://github.com/spatie/holidays/pull/203

**Full Changelog**: https://github.com/spatie/holidays/compare/1.8.0...1.9.0

## 1.8.0 - 2024-03-08

### What's Changed

* Adding holidays for Bahrain by @bo3bdo in https://github.com/spatie/holidays/pull/206
* Add default locale by @Nielsvanpach in https://github.com/spatie/holidays/pull/208
* Fix: Canada Victoria Day correction in test and calculation by @mercury64 in https://github.com/spatie/holidays/pull/211

### New Contributors

* @bo3bdo made their first contribution in https://github.com/spatie/holidays/pull/206
* @mercury64 made their first contribution in https://github.com/spatie/holidays/pull/211

**Full Changelog**: https://github.com/spatie/holidays/compare/1.7.0...1.8.0

## 1.7.0 - 2024-02-08

### What's Changed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ In case your country has specific rules for calculating holidays,
for example region specific holidays, you can pass this to the constructor of your country class.

```php
$holidays = Holidays::for(Germany::make(region: 'DE-BW'))->get();
$holidays = Holidays::for(Germany::make('DE-BW'))->get();
```

The value, `DE-BW`, will be passed to the region parameter of the constructor of a country.
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"require": {
"php": "^8.1",
"ext-intl": "*",
"ext-calendar": "*",
"nesbot/carbon": "^2.72.1|^3.0"
},
"require-dev": {
Expand Down
25 changes: 25 additions & 0 deletions lang/bosnia-and-herzegovina/en/holidays.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"Nova godina - prvi dan": "New Year - first day",
"Nova godina - drugi dan": "New Year - second day",
"Badnji dan (za pravoslavce)": "Christmas Eve (Orthodox)",
"Božić (za pravoslavce)": "Christmas (Orthodox)",
"Badnji dan (za rimokatolike)": "Christmas Eve (Catholic)",
"Božić (za rimokatolike)": "Christmas (Catholic)",
"Praznik rada - prvi dan": "Labour Day - first day",
"Praznik rada - drugi dan": "Labour Day - second day",
"Veliki petak (za pravoslavce)": "Good Friday (Orthodox)",
"Veliki petak (za rimokatolike)": "Good Friday (Catholic)",
"Vaskrs (za pravoslavce)": "Easter (Orthodox)",
"Vaskrs (za rimokatolike)": "Easter (Catholic)",
"Vaskršnji ponedjeljak (za pravoslavce)": "Easter Monday (Orthodox)",
"Vaskršnji ponedjeljak (za rimokatolike)": "Easter Monday (Catholic)",

"Dan Republike": "Republic Day",
"Dan pobjede nad fašizmom": "The day of victory over fascism",
"Dan uspostavljanja Opšteg okvirnog sporazuma za mir u BiH": "The day of establishment of the General Framework Agreement for Peace in Bosnia and Herzegovina",

"Dan nezavisnosti Bosne i Hercegovine": "Independence Day of Bosnia And Herzegovina",
"Dan državnosti Bosne i Hercegovine": "National Day of Bosnia And Herzegovina",

"Dan uspostavljanja Brčko distrikta": "Day of establishment of Brčko District"
}
13 changes: 13 additions & 0 deletions lang/ecuador/es/holidays.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"New Year's Day": "Año Nuevo",
"Holy Friday": "Viernes Santo",
"Carnival Monday": "Lunes de Carnaval",
"Carnival Tuesday": "Martes de Carnaval",
"Labor Day": "Día del Trabajo",
"Battle of Pichincha": "Batalla de Pichincha",
"Independence Day": "Primer Grito de la Independencia",
"Independence Of Guayaquil": "Independencia de Guayaquil",
"All Souls' Day": "Día de Los Difuntos",
"Independence Of Cuenca": "Independencia de Cuenca",
"Christmas": "Navidad"
}
19 changes: 19 additions & 0 deletions lang/morocco/ar/holidays.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"New Year\\'s Day": "رأس السنة الميلادية",
"Proclamation of Independence Day": "تقديم وثيقة الاستقلال",
"Amazigh New Year (ⵉⴹ ⵏ ⵢⵉⵏⵏⴰⵢⵔ)": "رأس السنة الأمازيغية",
"Labour Day": "عيد الشغل",
"Throne Day": "عيد العرش",
"Oued Ed-Dahab Day": "استرجاع إقليم وادي الذهب",
"Revolution Day": "ثورة الملك والشعب",
"Youth Day": "عيد الشباب",
"Green March": "ذكرى المسيرة الخضراء",
"Independence Day": "عيد الاستقلال",
"Islamic New Year": "رأس السنة الهجرية",
"Birthday of the Prophet Muhammad": "عيد المولد النبوي",
"Birthday of the Prophet Muhammad 2": "تاني ايام عيد المولد النبوي",
"Eid al-Fitr": "عيد الفطر",
"Eid al-Fitr 2": "تاني ايام عيد الفطر",
"Eid al-Adha": "عيد الأضحى",
"Eid al-Adha 2": "تاني ايام عيد الأضحى"
}
8 changes: 8 additions & 0 deletions lang/pakistan/ur/holidays.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Kashmir Solidarity Day": "یوم یکجہتی کشمیر",
"Pakistan Day": "یوم پاکستان",
"Labour Day": "مزدورں کادن",
"Independence Day": "یوم آزادی",
"Iqbal Day": "یوم اقبال",
"Quaid-e-Azam Day": "قائداعظم کا یوم پیدائش"
}
9 changes: 8 additions & 1 deletion lang/switzerland/fr/holidays.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"Neujahr": "Nouvel An",
"Neujahrs nächster tag": "Lendemain du Nouvel An",
"Berchtoldstag": "Saint-Berthold",
"Heilige Drei Könige": "Épiphanie",
"Neuenburger Republik tag": "Instauration de la République de Neuchâtel",
"Josefstag": "Saint-Joseph",
"Karfreitag": "Vendredi saint",
"Ostermontag": "Lundi de Pâques",
Expand All @@ -10,10 +12,15 @@
"Pfingstmontag": "Lundi de Pentecôte",
"Fronleichnam": "Fête-Dieu",
"Bundesfeier": "Fête nationale",
"Bundesfeier nächster tag": "Lendemain de la Fête nationale",
"Maria Himmelfahrt": "Assomption",
"Genfer Fasten": "Jeûne genevois",
"Buss- und Bettag": "Jeûne fédéral",
"Buss- und Bettag Montag": "Lundi du Jeûne fédéral",
"Allerheiligen": "Toussaint",
"Maria Empfängnis": "Immaculée Conception",
"Weihnachtstag": "Noël",
"Stephanstag": "Saint-Étienne"
"Weihnachtsnächstertag": "Lendemain de Noël",
"Stephanstag": "Saint-Étienne",
"Genf Republik tag": "Instauration de la République de Genève"
}
9 changes: 8 additions & 1 deletion lang/switzerland/it/holidays.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"Neujahr": "Capodanno",
"Neujahrs nächster tag": "Il giorno dopo Capodanno",
"Berchtoldstag": "San Silvestro",
"Heilige Drei Könige": "Epifania",
"Neuenburger Republik tag": "Istituzione della Repubblica di Neuchâtel",
"Josefstag": "San Giuseppe",
"Karfreitag": "Venerdì Santo",
"Ostermontag": "Lunedì di Pasqua",
Expand All @@ -10,10 +12,15 @@
"Pfingstmontag": "Lunedì di Pentecoste",
"Fronleichnam": "Corpus Domini",
"Bundesfeier": "Festa nazionale",
"Bundesfeier nächster tag": "Il giorno dopo la festa nazionale",
"Maria Himmelfahrt": "Assunzione",
"Genfer Fasten": "Jeûne genevois",
"Buss- und Bettag": "Digiuno federale",
"Buss- und Bettag Montag": "Digiuno federale Lunedì",
"Allerheiligen": "Ognissanti",
"Maria Empfängnis": "Immacolata Concezione",
"Weihnachtstag": "Natale",
"Stephanstag": "Santo Stefano"
"Weihnachtsnächstertag": "Il giorno dopo la festa di Natale",
"Stephanstag": "Santo Stefano",
"Genf Republik tag": "Istituzione della Repubblica di Ginevra"
}
22 changes: 22 additions & 0 deletions lang/tunisia/ar/holidays.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"New Year's Day'": "رأس السنة الميلادية",
"Independence Day": "عيد الاستقلال",
"Martyrs' Day": "عيد الشهداء",
"Labour Day": "عيد الشغل",
"Republic Day": "عيد الجمهورية",
"Women's Day": "عيد المرأة",
"Evacuation Day": "عيد الجلاء",
"Revolution and Youth Day": "عيد الثورة والشباب",
"Eid al-Fitr": "عيد الفطر",
"Eid al-Fitr Day 2": "عيد الفطر اليوم الثاني",
"Eid al-Fitr Day 3": "عيد الفطر اليوم الثالث",
"Eid al-Adha": "عيد الأضحى",
"Eid al-Adha Day 2": "عيد الأضحى اليوم الثاني",
"Eid al-Adha Day 3": "عيد الأضحى اليوم الثالث",
"Eid al-Adha Day 4": "عيد الأضحى اليوم الرابع",
"Islamic New Year": "رأس السنة الهجرية",
"Birthday of the Prophet Muhammad": "المولد النبوي الشريف",
"Arafat Day": "يوم عرفة (وقفة عيد الأضحى)",
"Day": "يوم"
}

22 changes: 22 additions & 0 deletions lang/tunisia/en/holidays.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"New Year's Day'": "New Year's Day",
"Independence Day": "Independence Day",
"Martyrs' Day": "Martyrs' Day",
"Labour Day": "Labour Day",
"Republic Day": "Republic Day",
"Women's Day": "Women's Day",
"Evacuation Day": "Evacuation Day",
"Revolution and Youth Day": "Revolution and Youth Day",
"Eid al-Fitr": "Eid al-Fitr day 1",
"Eid al-Fitr Day 2": "Eid al-Fitr day 2",
"Eid al-Fitr Day 3": "Eid al-Fitr day 3",
"Eid al-Adha": "Eid al-Adha day 1",
"Eid al-Adha Day 2": "Eid al-Adha day 2",
"Eid al-Adha Day 3": "Eid al-Adha day 3",
"Eid al-Adha Day 4": "Eid al-Adha day 4",
"Islamic New Year": "Islamic new year",
"Birthday of the Prophet Muhammad": "Birthday of the Prophet Mohamed",
"Arafat Day": "Arafat Day",
"Day": "Day"
}

22 changes: 22 additions & 0 deletions lang/tunisia/fr/holidays.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"New Year's Day'": "Jour de l'An",
"Independence Day": "Fête de l'indépendance",
"Martyrs' Day": "Fête des Martyrs",
"Labour Day": "Fête du Travail",
"Republic Day": "Fête de la République",
"Women's Day": "Fête de la femme",
"Evacuation Day": "Fête d'évacuation",
"Revolution and Youth Day": "Fête de la Révolution et de la Jeunesse",
"Eid al-Fitr": "Eid al-Fitr 1er jour",
"Eid al-Fitr Day 2": "Eid al-Fitr 2e jour",
"Eid al-Fitr Day 3": "Eid al-Fitr 3e jour",
"Eid al-Adha": "Eid al-Adha",
"Eid al-Adha Day 2": "Eid al-Adha",
"Eid al-Adha Day 3": "Eid al-Adha",
"Eid al-Adha Day 4": "Eid al-Adha",
"Islamic New Year": "Nouvel an islamique",
"Birthday of the Prophet Muhammad": "Anniversaire du prophète Mohamed",
"Arafat Day": "Arafat Day",
"Day": "Jour"
}

28 changes: 28 additions & 0 deletions lang/turkey/tr/holidays.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"New Year's Day": "Yılbaşı",
"Eid al-Fitr Eve": "Ramazan Bayramı Arifesi",
"Eid al-Fitr": "Ramazan Bayramı 1. Gün",
"Eid al-Fitr Day 2": "Ramazan Bayramı 2. Gün",
"Eid al-Fitr Day 3": "Ramazan Bayramı 3. Gün",
"National Sovereignty and Children's Day": "Ulusal Egemenlik ve Çocuk Bayramı",
"Labor and Solidarity Day": "Emek ve Dayanışma Günü",
"Commemoration of Atatürk, Youth and Sports Day": "Atatürk'ü Anma, Gençlik ve Spor Bayramı",
"Eid al-Adha Eve": "Kurban Bayramı Arifesi",
"Eid al-Adha": "Kurban Bayramı 1. Gün",
"Eid al-Adha Day 2": "Kurban Bayramı 2. Gün",
"Eid al-Adha Day 3": "Kurban Bayramı 3. Gün",
"Eid al-Adha Day 4": "Kurban Bayramı 4. Gün",
"Democracy and National Unity Day": "Demokrasi ve Millî Birlik Günü",
"Victory Day": "Zafer Bayramı",
"Republic Day Eve": "Cumhuriyet Bayramı Arifesi",
"Republic Day": "Cumhuriyet Bayramı",
"2. Eid al-Fitr Eve": "2. Ramazan Bayramı Arifesi",
"2. Eid al-Fitr": "2. Ramazan Bayramı 1. Gün",
"2. Eid al-Fitr Day 2": "2. Ramazan Bayramı 2. Gün",
"2. Eid al-Fitr Day 3": "2. Ramazan Bayramı 3. Gün",
"2. Eid al-Adha Eve": "2. Kurban Bayramı Arifesi",
"2. Eid al-Adha": "2. Kurban Bayramı 1. Gün",
"2. Eid al-Adha Day 2": "2. Kurban Bayramı 2. Gün",
"2. Eid al-Adha Day 3": "2. Kurban Bayramı 3. Gün",
"2. Eid al-Adha Day 4": "2. Kurban Bayramı 4. Gün"
}
Loading

0 comments on commit dcdd813

Please sign in to comment.