Random locale #2285
Unanswered
ahaberbosch
asked this question in
Q&A
Random locale
#2285
Replies: 1 comment 1 reply
-
all the precompiled Faker instances are acessible in an object called allFakers const {allFakers, faker} = require("@faker-js/faker")
const randomFaker = faker.helpers.objectValue(allFakers)
randomFaker.location.city() |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There was a way to select a random locale to be used with setLocale, but that support was deprecated. Is there still a way to do this? I'd like to randomize getting foreign addresses but there doesn't seem to be a way to do this anymore. Maybe with combination of lodash sample method?
Beta Was this translation helpful? Give feedback.
All reactions