Skip to content

Conversation

@flo-ri-an
Copy link
Contributor

@flo-ri-an flo-ri-an commented Jan 3, 2025

What does this change

In addition to fr_CH, this adds phone number patterns for de_CH and it_CH (they are identical for all three locales). Also, patterns were updated to match valid CH phone numbers as closely as possible according to https://de.wikipedia.org/wiki/Telefonnummer_(Schweiz)#Schreibweisen.

What was wrong

Patterns were only present for fr_CH, so faker threw an exception when the locale was set to either de_CH or it_CH

How this fixes it

New patterns add support for the missing locales

Fixes #2148

Checklist

  • I have read the documentation about CONTRIBUTING
  • I have read the documentation about Coding style
  • I have run make lint

@flo-ri-an
Copy link
Contributor Author

I did not touch the module where typing tests fail. Should probably be fixed separately?

@fcurella
Copy link
Collaborator

The typing issue is now fixed on master

Copy link
Collaborator

@fcurella fcurella left a comment

Choose a reason for hiding this comment

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

Thank you!

@fcurella fcurella force-pushed the master branch 9 times, most recently from aa137ce to c330978 Compare January 22, 2025 16:48
@fcurella fcurella merged commit d6aeba8 into joke2k:master Jan 30, 2025
9 of 15 checks passed
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.

Phone number patterns for de_CH and it_CH are missing.

2 participants