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 spanish support #111

Merged
merged 8 commits into from
Oct 13, 2023
Merged

Conversation

luismateoh
Copy link
Contributor

I implemented Integer converter for spanish.
Could you kindly take a look at this pull request? I'm available for discussions.

@jglaszka jglaszka self-requested a review August 29, 2023 21:55
@jglaszka
Copy link
Collaborator

Hi, tomorrow I will look at your PR :)

@jglaszka
Copy link
Collaborator

jglaszka commented Sep 6, 2023

Oh, sorry, I was busy and forgot to check your PR. @bartlomiejgraczyk will review your code.

Copy link
Collaborator

@jglaszka jglaszka left a comment

Choose a reason for hiding this comment

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

I checked test cases (they looks good) and added some comments, more detailed review in core logic will be done by Bartłomiej.


@Override
public String currency() {
return "$";
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it should be €, as it is official currency for Spain

Copy link
Collaborator

@bartlomiejgraczyk bartlomiejgraczyk 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 your contribution. I'm leaving some remarks. Try to simplify code a little bit, make it more readable. I'm looking forward to your response.

README.md Outdated
Comment on lines 37 to 42
* 🇸🇰 Slovak
* 🇺🇦 Ukrainian
* 🇷🇸 Serbian (Latin)
* 🇷🇸 Serbian (Cyrillic)
* 🇸🇰 Slovak
* 🇪🇸 Spanish
* 🇹🇷 Turkish
* 🇺🇦 Ukrainian
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍🏻

@jglaszka
Copy link
Collaborator

jglaszka commented Oct 1, 2023

Hi @luismateoh, we added some comments for you in review. Can you take a look?

# Conflicts:
#	README.md
#	src/main/java/pl/allegro/finance/tradukisto/MoneyConverters.java
#	src/main/java/pl/allegro/finance/tradukisto/ValueConverters.java
#	src/main/java/pl/allegro/finance/tradukisto/internal/Container.java
@codecov-commenter
Copy link

Codecov Report

Merging #111 (e741fa5) into master (e9a94fd) will decrease coverage by 0.73%.
The diff coverage is 90.56%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@             Coverage Diff              @@
##             master     #111      +/-   ##
============================================
- Coverage     99.19%   98.46%   -0.73%     
- Complexity      425      473      +48     
============================================
  Files            67       71       +4     
  Lines          1736     1895     +159     
  Branches         50       73      +23     
============================================
+ Hits           1722     1866     +144     
- Misses            7       17      +10     
- Partials          7       12       +5     
Files Coverage Δ
...pl/allegro/finance/tradukisto/MoneyConverters.java 100.00% <100.00%> (ø)
...pl/allegro/finance/tradukisto/ValueConverters.java 100.00% <100.00%> (ø)
...allegro/finance/tradukisto/internal/Container.java 100.00% <100.00%> (ø)
...guages/spanish/SpanishIntegerToWordsConverter.java 100.00% <100.00%> (ø)
...spanish/SpanishIntegerToWordsConverterAdapter.java 90.90% <90.90%> (ø)
...isto/internal/languages/spanish/SpanishValues.java 98.14% <98.14%> (ø)
...uages/spanish/SpanishThousandToWordsConverter.java 78.68% <78.68%> (ø)

@luismateoh
Copy link
Contributor Author

luismateoh commented Oct 6, 2023

I carried out most of the suggestions you made, I appreciate the comments you made and agree with them

@GHim9182 GHim9182 mentioned this pull request Oct 11, 2023
@bartlomiejgraczyk bartlomiejgraczyk merged commit 28b4397 into allegro:master Oct 13, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants