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

Support for setting locale #1

Open
spindelmanne opened this issue Mar 19, 2024 · 1 comment
Open

Support for setting locale #1

spindelmanne opened this issue Mar 19, 2024 · 1 comment

Comments

@spindelmanne
Copy link

Currently locale is hardcoded to en_GB. It is possible to "monkeypatch" this using code like the following, but it would be nicer to expose the internationalization support built into the faker library from your public API.

import anonymizedf.anonymizedf as adf
adf.fake = Faker(locale="sv_SE")
@AlexFrid
Copy link
Owner

Sure, I could update that to just have en_GB as a default parameter but allow for setting the locale.

I guess like something like this 🤔

anonymize(df, locale="sv_SE")

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