deprecate locale switching during runtime #1054
Labels
breaking change
Cannot be merged when next version is not a major release
c: locale
Permutes locale definitions
c: refactor
PR that affects the runtime behavior, but doesn't add new features or fixes bugs
s: accepted
Accepted feature / Confirmed bug
Milestone
Clear and concise description of the problem
I don't see a use case where you wouldn't be able to instantiate a new faker instance with your desired locale and instead need the utility to change an instance's locale during runtime.
Dropping this feature allows some easier separation of concern handling and thus leading to a cleaner architecture for the library.
Suggested solution
Deprecate (and later remove) the public accessibility of:
faker.locale
faker.locales
faker.localeFallback
faker.setLocal()
Alternative
No response
Additional context
There is a poll for dropping the feature of switching locales during runtime.
The text was updated successfully, but these errors were encountered: