Skip to content

Commit

Permalink
Merge pull request #2731 from jremes-foss/en-gb-country-code
Browse files Browse the repository at this point in the history
Add country code +44 to en-gb locale
  • Loading branch information
jremes-foss authored Mar 17, 2023
2 parents 6ce775b + 08f8660 commit 5384338
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/locales/en-GB.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ en-GB:
default_country: [England, Scotland, Wales, Northern Ireland]
internet:
domain_suffix: [co.uk, com, biz, info, name]
country_code: ['44']
phone_number:
formats: ['01#### #####', '01### ######', '01#1 ### ####', '011# ### ####', '02# #### ####', '03## ### ####', '055 #### ####', '056 #### ####', '0800 ### ####', '08## ### ####', '09## ### ####', '016977 ####', '01### #####', '0500 ######', '0800 ######']
cell_phone:
Expand Down
4 changes: 4 additions & 0 deletions test/test_en_gb_locale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ def test_en_gb_internet_methods
assert Faker::Internet.domain_suffix.is_a? String
end

def test_en_gb_country_code
assert_equal('+44', Faker::PhoneNumber.country_code)
end

def test_en_gb_phone_starts_with_zero
phone = Faker::PhoneNumber.phone_number.gsub(/\D/, '')

Expand Down

0 comments on commit 5384338

Please sign in to comment.