Skip to content

city does not return localized city name #983

@rosnk

Description

@rosnk

Describe the bug

has set localized value to "en_CA" and i want city to return based on canada, to be more precise i would love to have city return based on province i have choosen.

Currently i am getting province from canada but city is returning USA cities.

Reproduction

import { faker } from "@faker-js/faker";
faker.setLocale("en_CA");

const province = faker.address.state(); //this gives canadian province
const city = faker.address.cityName(); //but this does not give canadian cities

console.log(province);
console.log(city);

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions