faker
faker copied to clipboard
Missing 'word.adjective' locale data in 'pt_BR' breaks internet.domainName()
Pre-Checks
- [x] Follow our Code of Conduct.
- [x] Read the Contributing Guidelines.
- [x] Read the docs.
- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [x] Make sure this is a Faker issue and not related to a combination with another package.
- [x] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- [x] The provided reproduction is a minimal reproducible example of the bug.
- [x] I am willing to provide a PR.
Describe the bug
It seems the pt_BR locale is missing required data in the word.adjective path, which is needed by internet.domainName().
Steps to reproduce
import { Faker, pt_BR } from '@faker-js/faker';
const faker = new Faker({ locale: pt_BR });
console.log(faker.internet.domainName());
### Minimal reproduction code
https://gist.github.com/V1nic1us/e5c5c8193bbb33556a6aa7dcb0114ea3
### Additional Context
Workaround
import { Faker, pt_BR, en } from '@faker-js/faker';
const faker = new Faker({ locale: [pt_BR, en], });
console.log(faker.internet.domainName())
### Environment Info
```shell
System:
OS: Linux 6.14 Arch Linux
CPU: (16) x64 AMD Ryzen 7 5700U with Radeon Graphics
Memory: 5.19 GB / 22.82 GB
Container: Yes
Shell: 5.9 - /usr/bin/zsh
Binaries:
Node: 20.19.1 - ~/.nvm/versions/node/v20.19.1/bin/node
Yarn: 4.6.0 - ~/.nvm/versions/node/v20.19.1/bin/yarn
npm: 10.8.2 - ~/.nvm/versions/node/v20.19.1/bin/npm
npmPackages:
@faker-js/faker: ^9.8.0 => 9.8.0
Which module system do you use?
- [x] CJS
- [ ] ESM
Used Package Manager
yarn