Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Add Hebrew #166

wants to merge 6 commits into from

Conversation

sbc640964
Copy link

No description provided.

Copy link
Owner

@kwn kwn left a 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:

  1. Fix linter error
  2. Add some unit tests
  3. Replace docblocks with type hints
  4. 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 | + | + |
Copy link
Owner

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,
Copy link
Owner

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,
Copy link
Owner

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']],
Copy link
Owner

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
{
/**
Copy link
Owner

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
Copy link
Owner

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);
}

/**
Copy link
Owner

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) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PSR12 error

Suggested change
if($number === 2) {
if ($number === 2) {

@Bryce-Colton
Copy link

@kwn : How I can contribute to finalize this PR ?

I tried on #167 , because it is just some test cases to add.

But :

  • I can't push commit on PR (no permission on the kwn repo)
  • I can't push commit on the branch (no permission on the forked repo).

So i'm wonder (as a github noob) how to help on PR suggested by others ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants