-
-
Notifications
You must be signed in to change notification settings - Fork 975
address.cityPrefix
returning undefined on pt_BR
#623
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
Comments
https://github.com/faker-js/faker/blob/main/src/locales/pt_BR/address/city_prefix.ts There is a city_prefix, but it is empty 🤔 Was this also the case with v5.5.3? I will look into this after I fully woke up. |
@ponei Are you fluent/familiar with pt_br? |
The only question I have right now is: was it different in v5.5.3, then it could be a |
This doesn't have any impact. An empty array wouldn't get replaced either way. |
We have a somewhat related PR for the general issue: #609 But adding some city prefixes for |
Maybe add/fix |
Yes, I'm fluent with portuguese. I could come up with some after work, but prefixes for cities aren't very common here, suffixes are. Maybe the locale should say what it prefers? (suffix or prefix). Then if you want to override you could pass arguments explicitly saying otherwise. |
Yeah the generator patterns should be in the locale definitions as well (v6.2 or later). Maybe add |
There are no city prefixes/suffixes in pt_BR. Is there a way to return only |
For now please call I looked into the implementation of Lines 95 to 112 in 2b934c5
and damn, this is a mess 🤣 |
Now there is faker/src/locales/pt_BR/address/city.ts Lines 2 to 5 in c5ac124
The cityPrefix and suffix methods itself will be deprecated for removal in #1041 . |
Describe the bug
Title pretty much sums it up. This is dependent on locale and doesn't happen on english - did not test on other locales other than
pt_BR
anden
.Reproduction
Calling
address.cityPrefix
or any other function that uses it (address.city
sometimes does) returnsundefined
Additional Info
No response
The text was updated successfully, but these errors were encountered: