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

Added Japanese support #148

Merged
merged 9 commits into from
Nov 24, 2023
Merged

Conversation

tabatad
Copy link
Contributor

@tabatad tabatad commented Nov 5, 2023

Related to #142

I implemented Integer, Long and BigDecimal converter for Japanese.
I checked all tests passed.

Could you review this PR?

@tabatad tabatad changed the title Feature/japanese support Added Japanese support Nov 5, 2023
@codecov-commenter
Copy link

codecov-commenter commented Nov 6, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (2c7d26d) 98.83% compared to head (ebe8e35) 98.70%.

Files Patch % Lines
...ges/japanese/JapaneseThousandToWordsConverter.java 90.47% 1 Missing and 1 partial ⚠️
...uages/japanese/JapaneseNumberToWordsConverter.java 90.90% 0 Missing and 1 partial ⚠️
...to/internal/languages/japanese/JapaneseValues.java 97.67% 1 Missing ⚠️

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

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #148      +/-   ##
============================================
- Coverage     98.83%   98.70%   -0.14%     
- Complexity      513      535      +22     
============================================
  Files            76       81       +5     
  Lines          2058     2157      +99     
  Branches         79       83       +4     
============================================
+ Hits           2034     2129      +95     
- Misses           12       14       +2     
- Partials         12       14       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -319,6 +322,31 @@ public static Container swedishContainer() {
return new Container(swedishNumberToWordsConverter, swedishNumberToWordsConverter, swedishBigDecimalConverter);
}

public static Container japaneseContainer() {
Copy link
Collaborator

@jglaszka jglaszka Nov 24, 2023

Choose a reason for hiding this comment

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

just one suggestion - can you name it japaneseKanjiContainer, please? and also rename it in readme + in enums JAPANESE_LONG -> JAPANESE_KANJI_LONG. In the future, someone may implement it in hiragana

@jglaszka jglaszka merged commit 3f6438b into allegro:master Nov 24, 2023
3 checks passed
@tabatad
Copy link
Contributor Author

tabatad commented Nov 24, 2023

Fixed.
I am amazed that you know Kanji and Hiragana!

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.

3 participants