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

Use region code instead Locale in defaultCountry #23

Merged
merged 2 commits into from
Jul 2, 2020

Conversation

Blackjacx
Copy link
Owner

Use region code instead Locale in defaultCountry

Locale was kind of overkill as we only need the isoRegionCode to
determine the default country. It also enables persisting this code for
apps that e.g. use the country picker at login time. The persisted
code can then be used to re-initialize a phone number view controller
with an existing number when the user wants to edit it.

Apart from this i streamlined the wording to isoCountryCode when
referring to the two-letter ISO 3166
code of a country.

@Blackjacx Blackjacx self-assigned this Jul 2, 2020
Locale was kind of overkill as we only need the isoRegionCode to
determine the default country. It also enables persisting this code for
apps that e.g. use the country picker at login time. The persisted
code can then be used to re-initialize a phone number view controller
with an existing number when the user wants to edit it.

Apart from this i streamlined the wording to `isoCountryCode` when
referring to the two-letter [ISO 3166](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes)
code of a country.
@github-actions
Copy link

github-actions bot commented Jul 2, 2020

1 Warning
⚠️ There’re app changes, but not tests. That’s OK as long as you’re refactoring existing code.

Generated by 🚫 Danger

@Blackjacx Blackjacx merged commit d568557 into develop Jul 2, 2020
@Blackjacx Blackjacx deleted the refactor-default-country branch July 2, 2020 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant