Skip to content

Commit 3132221

Browse files
committed
Add french language
1 parent 43120b7 commit 3132221

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

resources/languages/iso6391.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@
1515
'name' => 'Portuguese',
1616
'code' => 'pt',
1717
],
18+
'fr' => [
19+
'name' => 'French',
20+
'code' => 'fr',
21+
],
1822
];

src/Geography/CountryList.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,9 @@ public static function ES() : Country
2525
{
2626
return new Country('Spain', 'ES', 'ESP');
2727
}
28+
29+
public static function FR() : Country
30+
{
31+
return new Country('France', 'FR', 'FRA');
32+
}
2833
}

tests/Geography/CountryListTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public function objectDataProvider() : array
3232
[CountryList::BR(), ['Brazil', 'BR', 'BRA']],
3333
[CountryList::US(), ['United States Of America', 'US', 'USA']],
3434
[CountryList::ES(), ['Spain', 'ES', 'ESP']],
35+
[CountryList::FR(), ['France', 'FR', 'FRA']],
3536
];
3637
}
3738
}

0 commit comments

Comments
 (0)