Skip to content

Commit c469e9d

Browse files
authored
Merge pull request #25 from Talentify/feature/french-language
Add french language
2 parents 43120b7 + 343fe15 commit c469e9d

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

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
}

tests/Linguistics/Languages/ISO6391LanguagesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function testGetAll() : void
1818
$results[] = $item;
1919
}
2020

21-
$this->assertCount(3, $results);
21+
$this->assertCount(4, $results);
2222
$this->assertTrue(
2323
(new Language('English', 'en'))->equals($results[0])
2424
);

0 commit comments

Comments
 (0)