Access language code from Faker instance #1908
matthewmayer
started this conversation in
General
Replies: 1 comment
-
In v7 via faker.locale |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Am i missing something, is there a way to access the current language code from a prebuilt faker instance?
I was trying to print out a list of all locales and the value of a certain method like street address e.g.
i tried
gets me the street addresses, but not the codes. The locale property of each faker throws an error.
i ended up with
which is a bit ugly. is there a nicer way to access the property on the Faker instance itself?
Similarly i'd expect something like
Beta Was this translation helpful? Give feedback.
All reactions