-
-
Notifications
You must be signed in to change notification settings - Fork 930
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
Merge faker.location.city() and faker.location.cityName() #2021
Comments
There seem to
2a) generated patterns only
2b) real cities stored in city_prefix
3). Has both fictional city patterns and a list of real city names
|
i'd probably do something like Then
|
I also considered not having an option and only using the pattern file to determine the result. |
that's possible but then you'd need to decide what to do with existing type 3 locales which have both. |
Split the group 2 into two groups, 2a and 2b. 2b is probably a bug, and these should be converted into type 1 (see #1471) before this is implemented. |
Team Suggestion
|
For group 3 locales that currently have both which one will you pick? |
Real city names are just one option from the "generated" pattern list. |
Ok so it would be a mix of real and generated? |
Team Decision We want this for v8.0. |
Two more things needs to be done for this:
|
Clear and concise description of the problem
From just the method names, it is confusing what each method does.
It also causes issues when a locale does not have a city_name_pattern or city_name locale file.
Suggested solution
Merge both methods into one. (Not sure about the name yet)
Alternative
Additional context
Part of #1346
The text was updated successfully, but these errors were encountered: