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

Improve address provider for en_NG locale #807

Conversation

chrisidakwo
Copy link

@chrisidakwo chrisidakwo commented Nov 8, 2023

What is the reason for this PR?

To improve the address data generated for the en_NG locale.

  • A new feature
  • Fixed an issue (resolve #ID)

Author's checklist

Summary of changes

  • Renamed 'Abuja' to 'Federal Capital Territory'. Abuja is the name of a city and government administration area, but not a state.
  • Postcodes in Nigeria are strictly made up of 6 digits. The $postcode variable has been updated to reflect that.
  • Updated 'county' to act as an alias of 'state' - which is the actual term used to refer to the major sub-administrative governments directly below the Federal.
  • City names in Nigeria do not require a suffix. Hence, the array has been left empty.
  • It's common to see street names in Nigeria with prefixes such as 'Chief', 'General', 'Rev.', 'Bishop'. The street name format has been updated to reflect this.
  • 'Region' in Nigeria typically refers to the political regional divisions of the country, and not cities. Hence, cityName has been added (instead) to reflect actual city names, and region has been updated to reflect the political regional divisions of Nigeria.

Review checklist

  • All checks have passed
  • Changes are added to the CHANGELOG.md
  • Changes are approved by maintainer

Ekojoka Christolight Idakwo and others added 3 commits November 8, 2023 09:18
- Postcodes in Nigeria are strictly made up of 6 digits. The `$postcode` variable has been updated to reflect that.
- Replaced 'county' with 'state' - which is the actual term used to refer to the major sub-administrative governments directly below the Federal.
- City names in Nigeria do not require a suffix. Hence, the array has been left empty.
- It's common to see street names in Nigeria with prefixes such as 'Chief', 'General', 'Rev.', 'Bishop'. The street name format has been updated to reflect this.
- 'Region' in Nigeria typically refers to the political regional divisions of the country, and not cities. Hence, `cityName` has been added (instead) to reflect actual city names, and `region` has been updated to reflect the political regional divisions of Nigeria.
@bram-pkg
Copy link
Member

bram-pkg commented Nov 8, 2023

Seems there are backwards compatible breaking changes, could you look at those?

@bram-pkg
Copy link
Member

bram-pkg commented Nov 9, 2023

Just some PHPStan errors left now, seems you can remove those from the baseline

Copy link

stale bot commented Dec 15, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 1 week if no further activity occurs. Thank you for your contributions.

@stale stale bot closed this Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants