Skip to content

Commit

Permalink
fix language error
Browse files Browse the repository at this point in the history
  • Loading branch information
abdalrhman ak committed Feb 7, 2024
1 parent 9f7561b commit 526bb1c
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 27 deletions.
4 changes: 2 additions & 2 deletions lang/syria/ar/holidays.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"Teacher\n's Day": "عيد المعلم",
"Western Easter": "عيد الفصح الغربي",
"Eid al-Fitr": "عيد الفطر السعيد",
"Syrian Independence Day": "عيد الجلا واستقلال سورية",
"Syrian Independence Day": "عيد الجلاء واستقلال سورية",
"Labor Day": "عيد العمال",
"Eastern Easter": "عيد الفصح الشرقي",
"Martyrs\n's Day": "عيد الشهداء",
"Martyrs\n' Day": "عيد الشهداء",
"Eid al-Adha": "عيد الأضحى المبارك",
"Islamic New Year": "عيد رأس السنة الهجرية",
"The commemoration of the birth of the Prophet Muhammad": "عيد مولد الرسول الأعظم",
Expand Down
28 changes: 14 additions & 14 deletions src/Countries/Syria.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ public function countryCode(): string
protected function allHolidays(int $year): array
{
return array_merge([
'New Year\'s Day' => '01-01',
'Mother\'s Day' => '03-21',
'Teacher\'s Day' => '03-21',
'Western Easter' => '03-31',
'Eid al-Fitr' => '04-10',
'Syrian Independence Day' => '04-17',
'Labor Day' => '05-01',
'Eastern Easter' => '05-05',
'Martyrs\'s Day' => '05-06',
'Eid al-Adha' => '06-16',
'Islamic New Year' => '07-07',
'The commemoration of the birth of the Prophet Muhammad' => '09-15',
'The October Liberation War' => '10-06',
'Merry Christmas' => '12-25',
"New Year\n's Day" => '01-01',
"Mother\n's Day" => '03-21',
"Teacher\n's Day" => '03-21',
"Western Easter" => '03-31',
"Eid al-Fitr" => '04-10',
"Syrian Independence Day" => '04-17',
"Labor Day" => '05-01',
"Eastern Easter" => '05-05',
"Martyr\n's Day" => '05-06',
"Eid al-Adha" => '06-16',
"Islamic New Year" => '07-07',
"The commemoration of the birth of the Prophet Muhammad" => '09-15',
"The October Liberation War" => '10-06',
"Merry Christmas" => '12-25',
], $this->variableHolidays($year));
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[
{
"name": "New Year's Day",
"name": "New Year\n's Day",
"date": "2024-01-01"
},
{
"name": "Mother's Day",
"name": "Mother\n's Day",
"date": "2024-03-21"
},
{
"name": "Teacher's Day",
"name": "Teacher\n's Day",
"date": "2024-03-21"
},
{
Expand All @@ -32,7 +32,7 @@
"date": "2024-05-05"
},
{
"name": "Martyrs's Day",
"name": "Martyr\n's Day",
"date": "2024-05-06"
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[
{
"name": "New Year's Day",
"name": "\u064a\u0648\u0645 \u0631\u0623\u0633 \u0627\u0644\u0633\u0646\u0629",
"date": "2024-01-01"
},
{
"name": "Mother's Day",
"name": "\u0639\u064a\u062f \u0627\u0644\u0623\u0645",
"date": "2024-03-21"
},
{
"name": "Teacher's Day",
"name": "\u0639\u064a\u062f \u0627\u0644\u0645\u0639\u0644\u0645",
"date": "2024-03-21"
},
{
Expand All @@ -20,7 +20,7 @@
"date": "2024-04-10"
},
{
"name": "\u0639\u064a\u062f \u0627\u0644\u062c\u0644\u0627 \u0648\u0627\u0633\u062a\u0642\u0644\u0627\u0644 \u0633\u0648\u0631\u064a\u0629",
"name": "\u0639\u064a\u062f \u0627\u0644\u062c\u0644\u0627\u0621 \u0648\u0627\u0633\u062a\u0642\u0644\u0627\u0644 \u0633\u0648\u0631\u064a\u0629",
"date": "2024-04-17"
},
{
Expand All @@ -32,7 +32,7 @@
"date": "2024-05-05"
},
{
"name": "Martyrs's Day",
"name": "Martyr\n's Day",
"date": "2024-05-06"
},
{
Expand Down
3 changes: 1 addition & 2 deletions tests/Countries/SyriaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
->and(formatDates($holidays))->toMatchSnapshot();
});
it('can translate syria holidays into arabic', function () {
$holidays = Holidays::for(country: 'sy', locale: 'ar', year: 2024)->get();

$holidays = Holidays::for(country: 'sy', year: 2024, locale: 'ar')->get();
expect($holidays)
->toBeArray()
->not()->toBeEmpty();
Expand Down

0 comments on commit 526bb1c

Please sign in to comment.