faker icon indicating copy to clipboard operation
faker copied to clipboard

Missing 'word.adjective' locale data in 'pt_BR' breaks internet.domainName()

Open V1nic1us opened this issue 6 months ago • 1 comments

Pre-Checks

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

V1nic1us avatar May 29 '25 18:05 V1nic1us