-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
c: localePermutes locale definitionsPermutes locale definitionshas workaroundWorkaround provided or linkedWorkaround provided or linkedm: loremSomething is referring to the lorem moduleSomething is referring to the lorem modulep: 1-normalNothing urgentNothing urgents: on holdBlocked by something or frozen to avoid conflictsBlocked by something or frozen to avoid conflicts
Milestone
Description
Pre-Checks
- Follow our Code of Conduct.
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Faker issue and not related to a combination with another package.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
- I am willing to provide a PR.
Describe the bug
@faker-js/[email protected]
const customFaker = new Faker({ locale: [zh_CN] }); customFaker.lorem.paragraphs({ min:2, max:3 }, '\n')
get error "The locale data for 'lorem.words' are missing in this locale.
Please contribute the missing data to the project or use a locale/Faker instance that has these data."
Minimal reproduction code
No response
Additional Context
Environment Info
System:
OS: macOS 13.0
CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
Memory: 112.32 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.20.2 - ~/.nvm/versions/node/v16.20.2/bin/node
Yarn: 1.22.21 - /usr/local/bin/yarn
npm: 8.19.4 - ~/.nvm/versions/node/v16.20.2/bin/npm
pnpm: 7.33.7 - ~/.nvm/versions/node/v16.20.2/bin/pnpm
Browsers:
Chrome: 124.0.6367.209
Safari: 16.1
npmPackages:
@faker-js/faker: ^8.4.1 => 8.4.1Which module system do you use?
- CJS
- ESM
Used Package Manager
pnpm
Metadata
Metadata
Assignees
Labels
c: localePermutes locale definitionsPermutes locale definitionshas workaroundWorkaround provided or linkedWorkaround provided or linkedm: loremSomething is referring to the lorem moduleSomething is referring to the lorem modulep: 1-normalNothing urgentNothing urgents: on holdBlocked by something or frozen to avoid conflictsBlocked by something or frozen to avoid conflicts
