Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seeder locale not working #115

Open
GomesMarcos opened this issue Jul 5, 2023 · 1 comment
Open

seeder locale not working #115

GomesMarcos opened this issue Jul 5, 2023 · 1 comment

Comments

@GomesMarcos
Copy link

The locale params seems not working properly:

seeder = Seed.seeder(locale="<code>")
seeder.faker.locales returns the default value ['en_US'] and the passed one isn't setted.

The image below exemplify it better.

image

@Serkoe2
Copy link

Serkoe2 commented Dec 6, 2023

It's happend from this line

faker = cls.fakers.get(code, None) or cls.faker(codename=code)

when called cls.faker(codename=code), argument 'locale' is None by default. Next at
cls.fakers[code] = Faker(locale) , set to default locale

cls.fakers[code] = Faker(locale)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants