Skip to content

Commit

Permalink
Added South African (SA) Locale
Browse files Browse the repository at this point in the history
  • Loading branch information
Nusrath Khan committed Jul 7, 2017
1 parent 6cdb93e commit d974be3
Show file tree
Hide file tree
Showing 22 changed files with 449 additions and 0 deletions.
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ faker.locale = "de";
* en_IE
* en_IND
* en_US
* en_ZA
* en_au_ocker
* es
* es_MX
Expand Down
1 change: 1 addition & 0 deletions lib/locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ exports['en_GB'] = require('./locales/en_GB');
exports['en_IE'] = require('./locales/en_IE');
exports['en_IND'] = require('./locales/en_IND');
exports['en_US'] = require('./locales/en_US');
exports['en_ZA'] = require('./locales/en_ZA');
exports['en_au_ocker'] = require('./locales/en_au_ocker');
exports['es'] = require('./locales/es');
exports['es_MX'] = require('./locales/es_MX');
Expand Down
3 changes: 3 additions & 0 deletions lib/locales/en_ZA/address/city.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module["exports"] = [
"#{city_prefix}"
];
16 changes: 16 additions & 0 deletions lib/locales/en_ZA/address/city_prefix.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module["exports"] = [
"Polokwane",
"Johannesburg",
"Pretoria",
"Tshwane",
"Durban",
"Pietermaritzburg",
"Nelspruit",
"Cape Town",
"Stellenbosch",
"Port Elizabeth",
"East London",
"Kimberley",
"Rustenburg",
"Bloemfontein "
];
5 changes: 5 additions & 0 deletions lib/locales/en_ZA/address/default_country.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module["exports"] = [
"South Africa",
"The Republic of South Africa",
"SA"
];
7 changes: 7 additions & 0 deletions lib/locales/en_ZA/address/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var address = {};
module['exports'] = address;
address.city = require("./city");
address.city_prefix = require("./city_prefix");
address.default_country = require("./default_country");
address.postcode = require("./postcode");
address.state = require("./state");
3 changes: 3 additions & 0 deletions lib/locales/en_ZA/address/postcode.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module["exports"] = [
"####"
];
11 changes: 11 additions & 0 deletions lib/locales/en_ZA/address/state.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module["exports"] = [
"Limpopo",
"Gauteng",
"Free State,",
"North West",
"Northern Cape",
"Western Cape,",
"KwaZulu-Natal",
"Mpumalanga",
"Eastern Cape"
];
14 changes: 14 additions & 0 deletions lib/locales/en_ZA/cell_phone/formats.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module["exports"] = [
"+2760 ### ####",
"+2761 ### ####",
"+2763 ### ####",
"+2772 ### ####",
"+2773 ### ####",
"+2774 ### ####",
"+2776 ### ####",
"+2779 ### ####",
"+2781 ### ####",
"+2782 ### ####",
"+2783 ### ####",
"+2784 ### ####"
];
3 changes: 3 additions & 0 deletions lib/locales/en_ZA/cell_phone/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
var cell_phone = {};
module['exports'] = cell_phone;
cell_phone.formats = require("./formats");
8 changes: 8 additions & 0 deletions lib/locales/en_ZA/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var en_ZA = {};
module['exports'] = en_ZA;
en_ZA.title = "South Africa (English)";
en_ZA.address = require("./address");
en_ZA.internet = require("./internet");
en_ZA.name = require("./name");
en_ZA.phone_number = require("./phone_number");
en_ZA.cell_phone = require("./cell_phone");
6 changes: 6 additions & 0 deletions lib/locales/en_ZA/internet/domain_suffix.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module["exports"] = [
"net.za",
"org.za",
"co.za",
"com"
]
3 changes: 3 additions & 0 deletions lib/locales/en_ZA/internet/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
var internet = {};
module['exports'] = internet;
internet.domain_suffix = require("./domain_suffix");
10 changes: 10 additions & 0 deletions lib/locales/en_ZA/name/first_name.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module["exports"] = [
"Rapulane",
"Nthabiseng",
"Kopano",
"Mpho",
"Lungelo",
"Ziyanda",
"Nqobile",
"Monde"
];
5 changes: 5 additions & 0 deletions lib/locales/en_ZA/name/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var name = {};
module['exports'] = name;
name.first_name = require("./first_name");
name.last_name = require("./last_name");
name.name = require("./name");
9 changes: 9 additions & 0 deletions lib/locales/en_ZA/name/last_name.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module["exports"] = [
"Dlamini",
"Zulu",
"Mabunda",
"Makhanya",
"Khoza",
"Zuma",
"Zondi"
];
4 changes: 4 additions & 0 deletions lib/locales/en_ZA/name/name.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module["exports"] = [
"#{first_name} #{last_name}",
"#{last_name} #{first_name}"
];
40 changes: 40 additions & 0 deletions lib/locales/en_ZA/phone_number/area_code.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
module["exports"] = [
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18",
"21",
"22",
"23",
"24",
"27",
"28",
"31",
"32",
"33",
"34",
"35",
"36",
"39",
"40",
"41",
"42",
"43",
"44",
"45",
"46",
"47",
"48",
"49",
"51",
"53",
"54",
"56",
"57",
"58"
];
Loading

0 comments on commit d974be3

Please sign in to comment.