Skip to content

Commit

Permalink
Added Azerbaijani holidays in English
Browse files Browse the repository at this point in the history
  • Loading branch information
kenanaga committed Jan 24, 2024
1 parent c18eece commit 45b8968
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lang/azerbaijan/en/holidays.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Yeni il": "New year",
"Beynəlxalq Qadınlar günü": "International Women's Day",
"Novruz bayramı": "Novruz holiday",
"Faşizm üzərində qələbə günü": "Day of Victory over fascism",
"Müstəqillik Günü": "Independence Day",
"Azərbaycan xalqının milli qurtuluş günü": "National Salvation Day of the Azerbaijani people",
"Azərbaycan Respublikasının Silahlı Qüvvələri günü": "Day of Armed Forces of the Republic of Azerbaijan",
"Müstəqilliyin bərpası günü": "Day of Restoration of Independence",
"Zəfər Günü": "Victory Day",
"Azərbaycan Respublikasının Dövlət bayrağı günü": "National Flag Day of the Republic of Azerbaijan",
"Dünya azərbaycanlılarının həmrəyliyi günü": "World Azerbaijanis Solidarity Day"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[
{
"name": "New year",
"date": "2024-01-01"
},
{
"name": "International Women's Day",
"date": "2024-03-08"
},
{
"name": "Novruz holiday",
"date": "2024-03-20"
},
{
"name": "Day of Victory over fascism",
"date": "2024-05-09"
},
{
"name": "Independence Day",
"date": "2024-05-28"
},
{
"name": "National Salvation Day of the Azerbaijani people",
"date": "2024-06-15"
},
{
"name": "Day of Armed Forces of the Republic of Azerbaijan",
"date": "2024-06-26"
},
{
"name": "Day of Restoration of Independence",
"date": "2024-10-18"
},
{
"name": "Victory Day",
"date": "2024-11-08"
},
{
"name": "National Flag Day of the Republic of Azerbaijan",
"date": "2024-11-09"
},
{
"name": "World Azerbaijanis Solidarity Day",
"date": "2024-12-31"
}
]
12 changes: 12 additions & 0 deletions tests/Countries/AzerbaijanTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,15 @@

expect(formatDates($holidays))->toMatchSnapshot();
});

it('can calculate azerbaijani holidays in english', function () {
CarbonImmutable::setTestNowAndTimezone('2024-01-01');

$holidays = Holidays::for(country: 'az',locale: 'en')->get();

expect($holidays)
->toBeArray()
->not()->toBeEmpty();

expect(formatDates($holidays))->toMatchSnapshot();
});

0 comments on commit 45b8968

Please sign in to comment.