Skip to content

Commit

Permalink
Added en_IE (Ireland) locale
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry Gallagher committed Jul 9, 2015
1 parent a3c4bc9 commit ccac41c
Show file tree
Hide file tree
Showing 13 changed files with 125 additions and 0 deletions.
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ faker.locale = "de";
* en_BORK
* en_CA
* en_GB
* en_IE
* en_IND
* en_US
* en_au_ocker
Expand Down
1 change: 1 addition & 0 deletions lib/locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ exports['en_AU'] = require('./locales/en_AU');
exports['en_BORK'] = require('./locales/en_BORK');
exports['en_CA'] = require('./locales/en_CA');
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_au_ocker'] = require('./locales/en_au_ocker');
Expand Down
28 changes: 28 additions & 0 deletions lib/locales/en_IE/address/county.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module["exports"] = [
"Carlow",
"Cavan",
"Clare",
"Cork",
"Donegal",
"Dublin",
"Galway",
"Kerry",
"Kildare",
"Kilkenny",
"Laois",
"Leitrim",
"Limerick",
"Longford",
"Louth",
"Mayo",
"Meath",
"Monaghan",
"Offaly",
"Roscommon",
"Sligo",
"Tipperary",
"Waterford",
"Westmeath",
"Wexford",
"Wicklow"
];
3 changes: 3 additions & 0 deletions lib/locales/en_IE/address/default_country.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module["exports"] = [
"Ireland"
];
5 changes: 5 additions & 0 deletions lib/locales/en_IE/address/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var address = {};
module['exports'] = address;
address.county = require("./county");
address.ireland_country = require("./ireland_country");
address.default_country = require("./default_country");
8 changes: 8 additions & 0 deletions lib/locales/en_IE/cell_phone/formats.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module["exports"] = [
"082 ### ####",
"083 ### ####",
"085 ### ####",
"086 ### ####",
"087 ### ####",
"089 ### ####"
];
3 changes: 3 additions & 0 deletions lib/locales/en_IE/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");
7 changes: 7 additions & 0 deletions lib/locales/en_IE/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var en_IE = {};
module['exports'] = en_IE;
en_IE.title = "Ireland (English)";
en_IE.address = require("./address");
en_IE.internet = require("./internet");
en_IE.phone_number = require("./phone_number");
en_IE.cell_phone = require("./cell_phone");
7 changes: 7 additions & 0 deletions lib/locales/en_IE/internet/domain_suffix.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module["exports"] = [
"ie",
"com",
"net",
"info",
"eu"
];
3 changes: 3 additions & 0 deletions lib/locales/en_IE/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");
51 changes: 51 additions & 0 deletions lib/locales/en_IE/phone_number/formats.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
module["exports"] = [
"01 #######",
"021 #######",
"022 #######",
"023 #######",
"024 #######",
"025 #######",
"026 #######",
"027 #######",
"028 #######",
"029 #######",
"0402 #######",
"0404 #######",
"041 #######",
"042 #######",
"043 #######",
"044 #######",
"045 #######",
"046 #######",
"047 #######",
"049 #######",
"0504 #######",
"0505 #######",
"051 #######",
"052 #######",
"053 #######",
"056 #######",
"057 #######",
"058 #######",
"059 #######",
"061 #######",
"062 #######",
"063 #######",
"064 #######",
"065 #######",
"066 #######",
"067 #######",
"068 #######",
"069 #######",
"071 #######",
"074 #######",
"090 #######",
"091 #######",
"093 #######",
"094 #######",
"095 #######",
"096 #######",
"097 #######",
"098 #######",
"099 #######"
];
3 changes: 3 additions & 0 deletions lib/locales/en_IE/phone_number/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
var phone_number = {};
module['exports'] = phone_number;
phone_number.formats = require("./formats");
5 changes: 5 additions & 0 deletions locale/en_IE.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var Faker = require('../lib');
var faker = new Faker({ locale: 'en_IE', localeFallback: 'en' });
faker.locales['en_IE'] = require('../lib/locales/en_IE');
faker.locales['en'] = require('../lib/locales/en');
module['exports'] = faker;

0 comments on commit ccac41c

Please sign in to comment.