Skip to content

Conversation

@asolntsev
Copy link
Collaborator

@asolntsev asolntsev commented May 31, 2024

The phone numbers do not depend on language. They depend only on country.

The motivation

Say, my goal is to generate an Albanian phone number.
I don't care about the language.

Both new Locale("sq", "AL") and new Locale("en", "AL") should generate Albanian phone numbers.

The problem

But currently only new Locale("sq", "AL") generates Albanian phone number, while new Locale("en", "AL") generate American phone number. Unexpected.

P.S. Unfortunately, I didn't have enough time to refactor all countries, only part of them.

… files

The phone numbers do not depend on language. They depend only on country.

Both `new Locale("sq", "AL")` and `new Locale("en", "AL")` should generate Albanian phone numbers.
@asolntsev asolntsev requested a review from snuyanzin May 31, 2024 07:47
@asolntsev asolntsev added the enhancement New feature or request label May 31, 2024
Copy link
Collaborator

@snuyanzin snuyanzin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have only superficial knowledge about phone number generation
so I don't see issues here and tests are green

LGTM from my side

@asolntsev asolntsev merged commit 42d5624 into main May 31, 2024
@asolntsev asolntsev deleted the refactoring/extract-phone-setup-to-country-specific-files branch May 31, 2024 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants