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

fix(locale): dateFns generator for korean #603

Merged
merged 5 commits into from
Feb 19, 2024

Conversation

nnnnoel
Copy link
Contributor

@nnnnoel nnnnoel commented Mar 8, 2023

No description provided.

@vercel
Copy link

vercel bot commented Mar 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
picker ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2024 1:31am

@nnnnoel
Copy link
Contributor Author

nnnnoel commented Mar 15, 2023

@zombieJ can you review about this PR?

@codecov
Copy link

codecov bot commented Mar 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5db4fbe) 98.57% compared to head (d44ba18) 98.57%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #603   +/-   ##
=======================================
  Coverage   98.57%   98.57%           
=======================================
  Files          63       63           
  Lines        2530     2531    +1     
  Branches      692      667   -25     
=======================================
+ Hits         2494     2495    +1     
  Misses         33       33           
  Partials        3        3           

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

@yoyo837
Copy link
Member

yoyo837 commented Oct 6, 2023

Could you talk about the problems and background of this PR fix?

@nnnnoel
Copy link
Contributor Author

nnnnoel commented Oct 7, 2023

@yoyo837 date-fns package do not have ko_KR or koKR fallback, only ko

@yoyo837
Copy link
Member

yoyo837 commented Oct 7, 2023

@yoyo837 date-fns package do not have ko_KR or koKR fallback, only ko

Could you add some test case for it?

@vercel
Copy link

vercel bot commented Oct 7, 2023

@nnnnoel is attempting to deploy a commit to the React Component Team on Vercel.

A member of the Team first needs to authorize it.

@nnnnoel
Copy link
Contributor Author

nnnnoel commented Oct 7, 2023

@yoyo837 Test Added

@yoyo837
Copy link
Member

yoyo837 commented Oct 7, 2023

test failed.

@nnnnoel
Copy link
Contributor Author

nnnnoel commented Oct 7, 2023

@yoyo837 fixed.

@@ -6,6 +6,7 @@ import luxonGenerateConfig from '../src/generate/luxon';
import { getMoment } from './util/commonUtil';

import 'dayjs/locale/zh-cn';
import 'dayjs/locale/ko';
Copy link
Member

Choose a reason for hiding this comment

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

Seems change in generate/dateFns.ts should not affect dayjs, is this import necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

dayjs locale js file should be imported before use.
cause of dynamic register locale config

Copy link
Member

Choose a reason for hiding this comment

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

The problem is that the fix for dateFNS should not be covered using dayjs test cases.

@nnnnoel
Copy link
Contributor Author

nnnnoel commented Feb 19, 2024

@MadCcc @zombieJ @yoyo837 could you please review that PR?

@yoyo837
Copy link
Member

yoyo837 commented Feb 19, 2024

@MadCcc @zombieJ @yoyo837 could you please review that PR?

Your test case looks like it has nothing to do with date-fns.

@nnnnoel
Copy link
Contributor Author

nnnnoel commented Feb 19, 2024

@yoyo837 this code tests all types of generator. I passed korean generator for all libraries.

@yoyo837 yoyo837 merged commit 1f725d0 into react-component:master Feb 19, 2024
9 checks passed
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