-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Hebrew #166
base: master
Are you sure you want to change the base?
Add Hebrew #166
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adding the translator. It's a great and very valuable contribution. Could you please:
- Fix linter error
- Add some unit tests
- Replace docblocks with type hints
- Translate other currencies into Hebrew
Thank you in advance!
@@ -112,6 +112,7 @@ Note: The Currency Transformer within this library processes integers; ensure yo | |||
| Ukrainian | ua | + | + | | |||
| Uzbek | uz | + | + | | |||
| Yoruba | yo | + | + | | |||
| Hebrew | he | + | + | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please order the list alphabetically?
@@ -44,6 +44,7 @@ trait ManagesNumberTransformers | |||
'ua' => Transformer\UkrainianNumberTransformer::class, | |||
'uz' => Transformer\UzbekNumberTransformer::class, | |||
'yo' => Transformer\YorubaNumberTransformer::class, | |||
'he' => Transformer\HebrewNumberTransformer::class, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add he
on the list in the alphabetical order?
@@ -32,6 +32,7 @@ trait ManagesCurrencyTransformers | |||
'ua' => Transformer\UkrainianCurrencyTransformer::class, | |||
'uz' => Transformer\UzbekCurrencyTransformer::class, | |||
'yo' => Transformer\YorubaCurrencyTransformer::class, | |||
'he' => Transformer\HebrewCurrencyTransformer::class, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add he on the list in the alphabetical order?
]; | ||
|
||
public static array $currencyNames = [ | ||
'ALL' => [['lek'], ['qindarka']], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please translate other currencies using Hebrew alphabet?
|
||
class HebrewNounGenderInflector | ||
{ | ||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please use type hinting instead of docblocks? This library requires min PHP7
} | ||
|
||
/** | ||
* @param int $number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please replace docblocks with type hints?
return implode(' ', $words); | ||
} | ||
|
||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
$tens = ((int) ($number / 10)) % 10; | ||
|
||
if ($number > 1 && $number <= 10) { | ||
if($number === 2) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PSR12 error
if($number === 2) { | |
if ($number === 2) { |
@kwn : How I can contribute to finalize this PR ? I tried on #167 , because it is just some test cases to add. But :
So i'm wonder (as a github noob) how to help on PR suggested by others ... |
No description provided.