Skip to content

'lorem.words' missing for zh_CN #2907

@oofdie

Description

@oofdie

Pre-Checks

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

image

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.1

Which module system do you use?

  • CJS
  • ESM

Used Package Manager

pnpm

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: localePermutes locale definitionshas workaroundWorkaround provided or linkedm: loremSomething is referring to the lorem modulep: 1-normalNothing urgents: on holdBlocked by something or frozen to avoid conflicts

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions