Not sure if this exist or not, is it possible to generate random locales with python Faker lib? (https://faker.readthedocs.io/).
Good to have: generate supported locales
As a workaround:
>>> fake = Faker(["fr_FR", "it_IT", "de_DE"])
>>> fake.locales
['fr_FR', 'it_IT', 'de_DE']
>>> import random
>>> random.choices(fake.locales)[0]
de_DE
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With