Skip to content

Commit

Permalink
GBP support for French Locale (#137)
Browse files Browse the repository at this point in the history
* Update Fr.php

Add GBP on french locale

* feat: add support for Livre sterling (GBP) to French locale

* Update GBP

replace livres sterling(s) by pound(s)

* Aj

Ajustement test GBP
  • Loading branch information
Ange0 authored Jul 8, 2022
1 parent a51e8b1 commit 1478726
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Legacy/Numbers/Words/Locale/Fr.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class Fr extends Words
'CNY' => [['yuan'], ['fen']],
'DZD' => [['dinar'], ['centime']],
'EUR' => [['euro'], ['centime']],
'GBP' => [['pound', 'pounds'], ['penny', 'pence']],
'JPY' => [['yen', ['sen']]],
'LYD' => [['dinar'], ['centime']],
'MAD' => [['dirham'], ['centime']],
Expand Down
4 changes: 4 additions & 0 deletions tests/CurrencyTransformer/FrenchCurrencyTransformerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ public function providerItConvertsMoneyAmountToWords(): array
[754414599, 'AUD', 'sept millions cinq cent quarante-quatre mille cent quarante-cinq dollars australiens et quatre-vingt-dix-neuf cents'],
[754414599, 'CAD', 'sept millions cinq cent quarante-quatre mille cent quarante-cinq dollars canadiens et quatre-vingt-dix-neuf cents'],
[754414599, 'USD', 'sept millions cinq cent quarante-quatre mille cent quarante-cinq dollars américains et quatre-vingt-dix-neuf cents'],
[100, 'GBP', 'un pound'],
[1000, 'GBP', 'dix pounds'],
[70001, 'GBP', 'sept cents pounds et un penny'],
[700010, 'GBP', 'sept mille pounds et dix pence'],
];
}
}

0 comments on commit 1478726

Please sign in to comment.