-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
city does not return localized city name #983
Copy link
Copy link
Closed
Labels
c: localePermutes locale definitionsPermutes locale definitionsgood first issueGood for newcomersGood for newcomershas workaroundWorkaround provided or linkedWorkaround provided or linkedp: 1-normalNothing urgentNothing urgents: acceptedAccepted feature / Confirmed bugAccepted feature / Confirmed bug
Milestone
Metadata
Metadata
Assignees
Labels
c: localePermutes locale definitionsPermutes locale definitionsgood first issueGood for newcomersGood for newcomershas workaroundWorkaround provided or linkedWorkaround provided or linkedp: 1-normalNothing urgentNothing urgents: acceptedAccepted feature / Confirmed bugAccepted feature / Confirmed bug
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