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

refactor(locale): normalize date data #2902

Merged
merged 1 commit into from
May 18, 2024

Conversation

xDivisionByZerox
Copy link
Member

Description

Follow-on to #2265

Normalize the entries in the date module definitions in all locales.

I choose this module as no data set exceedes the 1k entry limit, so all locale file changes are based on entry sorting. The git diff deletion surplus comes from deleted empty lines in between object properties in the locale entries.

@xDivisionByZerox xDivisionByZerox added p: 1-normal Nothing urgent c: refactor PR that affects the runtime behavior, but doesn't add new features or fixes bugs c: locale Permutes locale definitions m: date Something is referring to the date module labels May 15, 2024
@xDivisionByZerox xDivisionByZerox requested a review from a team May 15, 2024 17:26
@xDivisionByZerox xDivisionByZerox self-assigned this May 15, 2024
@xDivisionByZerox xDivisionByZerox requested a review from a team as a code owner May 15, 2024 17:26
Copy link

netlify bot commented May 15, 2024

Deploy Preview for fakerjs ready!

Name Link
🔨 Latest commit ebfd2bd
🔍 Latest deploy log https://app.netlify.com/sites/fakerjs/deploys/6644f0474b14c100094b4b0d
😎 Deploy Preview https://deploy-preview-2902.fakerjs.dev
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented May 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.95%. Comparing base (7fb9bb5) to head (ebfd2bd).

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #2902      +/-   ##
==========================================
- Coverage   99.96%   99.95%   -0.01%     
==========================================
  Files        2977     2977              
  Lines      215466   215422      -44     
  Branches      950      948       -2     
==========================================
- Hits       215394   215333      -61     
- Misses         72       89      +17     
Files Coverage Δ
src/locales/ar/date/month.ts 100.00% <100.00%> (ø)
src/locales/ar/date/weekday.ts 100.00% <100.00%> (ø)
src/locales/az/date/month.ts 100.00% <100.00%> (ø)
src/locales/az/date/weekday.ts 100.00% <100.00%> (ø)
src/locales/cs_CZ/date/month.ts 100.00% <100.00%> (ø)
src/locales/cs_CZ/date/weekday.ts 100.00% <100.00%> (ø)
src/locales/da/date/month.ts 100.00% <100.00%> (ø)
src/locales/da/date/weekday.ts 100.00% <100.00%> (ø)
src/locales/de/date/month.ts 100.00% <100.00%> (ø)
src/locales/de/date/weekday.ts 100.00% <100.00%> (ø)
... and 56 more

... and 2 files with indirect coverage changes

@ST-DDT ST-DDT requested a review from a team May 15, 2024 17:48
@ST-DDT ST-DDT added this to the vAnytime milestone May 15, 2024
Copy link
Contributor

@matthewmayer matthewmayer left a comment

Choose a reason for hiding this comment

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

I think it's easier to review months, days etc if they are in their natural Jan-Feb-mar order than alphabetical.

@ST-DDT ST-DDT added the s: needs decision Needs team/maintainer decision label May 16, 2024
@ST-DDT
Copy link
Member

ST-DDT commented May 16, 2024

Team Decision

  • We will not make an exception for the date module.
  • The date module contains 12+7 entries. It should be manageable to check them for completeness.
  • We will add a test by using Intl for each locale.

@ST-DDT ST-DDT removed the s: needs decision Needs team/maintainer decision label May 16, 2024
@ST-DDT ST-DDT merged commit 9226945 into next May 18, 2024
26 checks passed
@ST-DDT ST-DDT deleted the refactor/locale/normalize-date-data branch May 18, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: locale Permutes locale definitions c: refactor PR that affects the runtime behavior, but doesn't add new features or fixes bugs m: date Something is referring to the date module p: 1-normal Nothing urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants