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): fix various locale data with trailing spaces #3329

Merged
merged 2 commits into from
Dec 7, 2024

Conversation

matthewmayer
Copy link
Contributor

Remove data which incorrectly ends with a trailing space.

in the case of ar/location/state and hr/location/street_name, this was also a duplicate of a line without a space, so removed.

in the case of ar/location/state and hr/location/street_name, this was also a duplicate of a line without a space, so removed.
@matthewmayer matthewmayer requested a review from a team as a code owner December 5, 2024 15:24
Copy link

netlify bot commented Dec 5, 2024

Deploy Preview for fakerjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit cd39374
🔍 Latest deploy log https://app.netlify.com/sites/fakerjs/deploys/6751c6210179dc0008262f3d
😎 Deploy Preview https://deploy-preview-3329.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.

@matthewmayer
Copy link
Contributor Author

although this breaks the rule of keeping PRs to a single module, i think its quick to review as a batch.

@matthewmayer matthewmayer self-assigned this Dec 5, 2024
@matthewmayer matthewmayer added the c: locale Permutes locale definitions label Dec 5, 2024
Copy link

codecov bot commented Dec 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.96%. Comparing base (2ba5edb) to head (cd39374).
Report is 6 commits behind head on next.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #3329      +/-   ##
==========================================
- Coverage   99.97%   99.96%   -0.01%     
==========================================
  Files        2806     2806              
  Lines      217086   217084       -2     
  Branches      975      966       -9     
==========================================
- Hits       217032   217014      -18     
- Misses         54       70      +16     
Files with missing lines Coverage Δ
src/locales/ar/location/state.ts 100.00% <ø> (ø)
src/locales/en/animal/horse.ts 100.00% <100.00%> (ø)
src/locales/en/book/title.ts 100.00% <100.00%> (ø)
src/locales/en_IN/location/city_name.ts 100.00% <100.00%> (ø)
src/locales/fa/lorem/word.ts 100.00% <100.00%> (ø)
src/locales/fr/animal/horse.ts 100.00% <100.00%> (ø)
src/locales/fr/word/preposition.ts 100.00% <100.00%> (ø)
src/locales/hr/location/country.ts 100.00% <100.00%> (ø)
src/locales/hr/location/street_name.ts 100.00% <ø> (ø)
src/locales/nl/location/city_prefix.ts 100.00% <100.00%> (ø)
... and 4 more

... and 1 file with indirect coverage changes

Copy link
Member

@ST-DDT ST-DDT left a comment

Choose a reason for hiding this comment

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

Should we add this to our normalize data script?

@ST-DDT ST-DDT requested review from a team December 5, 2024 15:29
@ST-DDT ST-DDT added the p: 1-normal Nothing urgent label Dec 5, 2024
@ST-DDT ST-DDT added this to the vAnytime milestone Dec 5, 2024
@ST-DDT ST-DDT changed the title fix: fix various locale data with trailing spaces refactor(locale): fix various locale data with trailing spaces Dec 5, 2024
@matthewmayer
Copy link
Contributor Author

Should we add this to our normalize data script?

There are a few cases where trailing or leading spaces seem intentional such as some prefixes and suffixes.

So perhaps not.

@ST-DDT ST-DDT added this pull request to the merge queue Dec 7, 2024
Merged via the queue into faker-js:next with commit e5eec0e Dec 7, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: locale Permutes locale definitions p: 1-normal Nothing urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants