Skip to content

Commit

Permalink
Set default lang to es
Browse files Browse the repository at this point in the history
  • Loading branch information
insoutt committed Apr 10, 2024
1 parent a20aee1 commit 3123eba
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/Countries/Ecuador.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function countryCode(): string

public function defaultLocale(): string
{
return 'en';
return 'es';
}

protected function allHolidays(int $year): array
Expand Down
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
[
{
"name": "New Year's Day",
"name": "A\u00f1o Nuevo",
"date": "2024-01-01"
},
{
"name": "Carnival Monday",
"name": "Lunes de Carnaval",
"date": "2024-02-12"
},
{
"name": "Carnival Tuesday",
"name": "Martes de Carnaval",
"date": "2024-02-13"
},
{
"name": "Holy Friday",
"name": "Viernes Santo",
"date": "2024-03-29"
},
{
"name": "Labor Day",
"name": "D\u00eda del Trabajo",
"date": "2024-05-03"
},
{
"name": "Battle of Pichincha",
"name": "Batalla de Pichincha",
"date": "2024-05-24"
},
{
"name": "Independence Day",
"name": "Primer Grito de la Independencia",
"date": "2024-08-09"
},
{
"name": "Independence Of Guayaquil",
"name": "Independencia de Guayaquil",
"date": "2024-10-11"
},
{
"name": "All Souls' Day",
"name": "D\u00eda de Los Difuntos",
"date": "2024-11-01"
},
{
"name": "Independence Of Cuenca",
"name": "Independencia de Cuenca",
"date": "2024-11-04"
},
{
"name": "Christmas",
"name": "Navidad",
"date": "2024-12-25"
}
]
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
[
{
"name": "A\u00f1o Nuevo",
"name": "New Year's Day",
"date": "2024-01-01"
},
{
"name": "Lunes de Carnaval",
"name": "Carnival Monday",
"date": "2024-02-12"
},
{
"name": "Martes de Carnaval",
"name": "Carnival Tuesday",
"date": "2024-02-13"
},
{
"name": "Viernes Santo",
"name": "Holy Friday",
"date": "2024-03-29"
},
{
"name": "D\u00eda del Trabajo",
"name": "Labor Day",
"date": "2024-05-03"
},
{
"name": "Batalla de Pichincha",
"name": "Battle of Pichincha",
"date": "2024-05-24"
},
{
"name": "Primer Grito de la Independencia",
"name": "Independence Day",
"date": "2024-08-09"
},
{
"name": "Independencia de Guayaquil",
"name": "Independence Of Guayaquil",
"date": "2024-10-11"
},
{
"name": "D\u00eda de Los Difuntos",
"name": "All Souls' Day",
"date": "2024-11-01"
},
{
"name": "Independencia de Cuenca",
"name": "Independence Of Cuenca",
"date": "2024-11-04"
},
{
"name": "Navidad",
"name": "Christmas",
"date": "2024-12-25"
}
]
4 changes: 2 additions & 2 deletions tests/Countries/EcuadorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
expect(formatDates($holidays))->toMatchSnapshot();
});

it('can calculate ecuador holidays with spanish translation', function () {
it('can calculate ecuador holidays with english translation', function () {
CarbonImmutable::setTestNow('2024-01-01');

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

expect($holidays)
->toBeArray()
Expand Down

0 comments on commit 3123eba

Please sign in to comment.