Improve specification of Address.countryCode()
#648
Labels
c: bug
Something isn't working
c: docs
Improvements or additions to documentation
c: locale
Permutes locale definitions
p: 2-high
Fix main branch
s: accepted
Accepted feature / Confirmed bug
Milestone
Uh oh!
There was an error while loading. Please reload this page.
faker/src/address.ts
Lines 277 to 288 in 5642470
faker/src/definitions/address.ts
Lines 74 to 81 in 5642470
Currently it is not clear whether the method should return a country code related to that locale/language or any of the world.
We should decide on either of these and thus adjust the documentation.
Affects:
src/locales/de_CH/address/country_code.ts
(Related to the locale)src/locales/fa/address/country_code.ts
(Duplicates en)src/locales/fr_CH/address/country_code.ts
(Related to the locale)src/locales/he/address/country_code.ts
(Empty/Invalid)If we use "any of the world" these files have to be deleted. (
*
->anyof ['AZ', ..., 'ZY']
)If we use "related to that locale" we have to update them. (
de
->anyof ['CH', 'DE']
)Blocks #609
The text was updated successfully, but these errors were encountered: