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

docs: improve missing data error #3406

Merged
merged 6 commits into from
Feb 28, 2025
Merged

Conversation

ST-DDT
Copy link
Member

@ST-DDT ST-DDT commented Feb 19, 2025

Fixed #3405


Improves the error message for missing data by adding a hint about potentially missing locales.

Preview:

@ST-DDT ST-DDT added c: docs Improvements or additions to documentation p: 1-normal Nothing urgent labels Feb 19, 2025
@ST-DDT ST-DDT added this to the vAnytime milestone Feb 19, 2025
@ST-DDT ST-DDT requested review from a team February 19, 2025 22:52
@ST-DDT ST-DDT self-assigned this Feb 19, 2025
Copy link

netlify bot commented Feb 19, 2025

Deploy Preview for fakerjs ready!

Name Link
🔨 Latest commit 79803b5
🔍 Latest deploy log https://app.netlify.com/sites/fakerjs/deploys/67c162c485ec1d0008913076
😎 Deploy Preview https://deploy-preview-3406.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 Feb 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.97%. Comparing base (dce28d6) to head (79803b5).
Report is 1 commits behind head on next.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #3406   +/-   ##
=======================================
  Coverage   99.97%   99.97%           
=======================================
  Files        2811     2811           
  Lines      216972   216972           
  Branches      944      944           
=======================================
  Hits       216917   216917           
  Misses         55       55           
Files with missing lines Coverage Δ
src/faker.ts 100.00% <ø> (ø)
src/internal/locale-proxy.ts 100.00% <ø> (ø)

@matthewmayer
Copy link
Contributor

In the example at https://fakerjs.dev/guide/localization.html#handling-missing-data-errors perhaps we could add base to the fixed version in the example as well as en?

@ST-DDT
Copy link
Member Author

ST-DDT commented Feb 20, 2025

In the example at fakerjs.dev/guide/localization.html#handling-missing-data-errors perhaps we could add base to the fixed version in the example as well as en?

Fixed: https://deploy-preview-3406.fakerjs.dev/guide/localization.html#handling-missing-data-errors

@ST-DDT ST-DDT requested review from ejcheng and a team February 20, 2025 09:24
@terrymun
Copy link

Thanks for improving the docs @ST-DDT ❤️

@ST-DDT ST-DDT merged commit 41ebbbb into next Feb 28, 2025
23 checks passed
@ST-DDT ST-DDT deleted the docs/missing-data-error-improvements branch February 28, 2025 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: docs Improvements or additions to documentation p: 1-normal Nothing urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom faker instance with en locale cannot generate system variables
4 participants