Skip to content

Commit

Permalink
Merge pull request #955 from Moosh-be/normalize-locales
Browse files Browse the repository at this point in the history
Normalize locales
  • Loading branch information
Marak authored Aug 8, 2020
2 parents a0eefbb + f593f2a commit 7da419d
Show file tree
Hide file tree
Showing 45 changed files with 55 additions and 30 deletions.
4 changes: 2 additions & 2 deletions lib/locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ exports['de_AT'] = require('./locales/de_AT');
exports['de_CH'] = require('./locales/de_CH');
exports['en'] = require('./locales/en');
exports['en_AU'] = require('./locales/en_AU');
exports['en_AU_ocker'] = require('./locales/en_AU_ocker');
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_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');
exports['fa'] = require('./locales/fa');
Expand All @@ -27,8 +27,8 @@ exports['ja'] = require('./locales/ja');
exports['ko'] = require('./locales/ko');
exports['nb_NO'] = require('./locales/nb_NO');
exports['nep'] = require('./locales/nep');
exports['nl_BE'] = require('./locales/nl_BE');
exports['nl'] = require('./locales/nl');
exports['nl_BE'] = require('./locales/nl_BE');
exports['pl'] = require('./locales/pl');
exports['pt_BR'] = require('./locales/pt_BR');
exports['pt_PT'] = require('./locales/pt_PT');
Expand Down
2 changes: 1 addition & 1 deletion lib/locales/af_ZA/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var en_ZA = {};
module['exports'] = en_ZA;
en_ZA.title = "South Africa (Afrikaans)";
en_ZA.title = "Afrikaans";
en_ZA.address = require("./address");
en_ZA.internet = require("./internet");
en_ZA.phone_number = require("./phone_number");
Expand Down
2 changes: 1 addition & 1 deletion lib/locales/el/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var el = {};
module['exports'] = el;
el.title = "Ελληνικά";
el.title = "Greek";
el.separator = " & ";
el.address = require("./address");
el.credit_card = require("./credit_card");
Expand Down
2 changes: 1 addition & 1 deletion lib/locales/en_AU/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var en_AU = {};
module['exports'] = en_AU;
en_AU.title = "Australia (English)";
en_AU.title = "English (Australia)";
en_AU.name = require("./name");
en_AU.company = require("./company");
en_AU.internet = require("./internet");
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions lib/locales/en_AU_ocker/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var en_AU_ocker = {};
module['exports'] = en_AU_ocker;
en_AU_ocker.title = "English (Australia Ocker)";
en_AU_ocker.name = require("./name");
en_AU_ocker.company = require("./company");
en_AU_ocker.internet = require("./internet");
en_AU_ocker.address = require("./address");
en_AU_ocker.phone_number = require("./phone_number");
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/locales/en_BORK/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var en_BORK = {};
module['exports'] = en_BORK;
en_BORK.title = "Bork (English)";
en_BORK.title = "English (Bork)";
en_BORK.lorem = require("./lorem");
2 changes: 1 addition & 1 deletion lib/locales/en_CA/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var en_CA = {};
module['exports'] = en_CA;
en_CA.title = "Canada (English)";
en_CA.title = "English (Canada)";
en_CA.address = require("./address");
en_CA.internet = require("./internet");
en_CA.phone_number = require("./phone_number");
2 changes: 1 addition & 1 deletion lib/locales/en_GB/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var en_GB = {};
module['exports'] = en_GB;
en_GB.title = "Great Britain (English)";
en_GB.title = "English (Great Britain)";
en_GB.address = require("./address");
en_GB.internet = require("./internet");
en_GB.phone_number = require("./phone_number");
Expand Down
2 changes: 1 addition & 1 deletion lib/locales/en_IE/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var en_IE = {};
module['exports'] = en_IE;
en_IE.title = "Ireland (English)";
en_IE.title = "English (Ireland)";
en_IE.address = require("./address");
en_IE.internet = require("./internet");
en_IE.phone_number = require("./phone_number");
Expand Down
2 changes: 1 addition & 1 deletion lib/locales/en_IND/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var en_IND = {};
module['exports'] = en_IND;
en_IND.title = "India (English)";
en_IND.title = "English (India)";
en_IND.name = require("./name");
en_IND.address = require("./address");
en_IND.internet = require("./internet");
Expand Down
2 changes: 1 addition & 1 deletion lib/locales/en_US/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var en_US = {};
module['exports'] = en_US;
en_US.title = "United States (English)";
en_US.title = "English (United States)";
en_US.internet = require("./internet");
en_US.address = require("./address");
en_US.phone_number = require("./phone_number");
4 changes: 2 additions & 2 deletions lib/locales/en_ZA/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
var en_ZA = {};
module['exports'] = en_ZA;
en_ZA.title = "South Africa (English)";
en_ZA.title = "English (South Africa)";
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");
en_ZA.company = require("./company");
en_ZA.company = require("./company");
8 changes: 0 additions & 8 deletions lib/locales/en_au_ocker/index.js

This file was deleted.

4 changes: 2 additions & 2 deletions lib/locales/es_MX/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var es_MX = {};
module['exports'] = es_MX;
es_MX.title = "Spanish Mexico";
es_MX.title = "Spanish (Mexico)";
es_MX.separator = " & ";
es_MX.name = require("./name");
es_MX.address = require("./address");
Expand All @@ -10,4 +10,4 @@ es_MX.phone_number = require("./phone_number");
es_MX.cell_phone = require("./cell_phone");
es_MX.lorem = require("./lorem");
es_MX.commerce = require("./commerce");
es_MX.team = require("./team");
es_MX.team = require("./team");
2 changes: 1 addition & 1 deletion lib/locales/fr_CA/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var fr_CA = {};
module['exports'] = fr_CA;
fr_CA.title = "Canada (French)";
fr_CA.title = "French (Canada)";
fr_CA.address = require("./address");
fr_CA.internet = require("./internet");
fr_CA.phone_number = require("./phone_number");
2 changes: 1 addition & 1 deletion lib/locales/zu_ZA/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var en_ZA = {};
module['exports'] = en_ZA;
en_ZA.title = "South Africa (Zulu)";
en_ZA.title = "Zulu (South Africa)";
en_ZA.address = require("./address");
en_ZA.internet = require("./internet");
en_ZA.phone_number = require("./phone_number");
Expand Down
5 changes: 5 additions & 0 deletions locale/af_ZA.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var Faker = require('../lib');
var faker = new Faker({ locale: 'af_ZA', localeFallback: 'en' });
faker.locales['af_ZA'] = require('../lib/locales/af_ZA');
faker.locales['en'] = require('../lib/locales/en');
module['exports'] = faker;
5 changes: 5 additions & 0 deletions locale/ar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var Faker = require('../lib');
var faker = new Faker({ locale: 'ar', localeFallback: 'en' });
faker.locales['ar'] = require('../lib/locales/ar');
faker.locales['en'] = require('../lib/locales/en');
module['exports'] = faker;
5 changes: 5 additions & 0 deletions locale/el.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var Faker = require('../lib');
var faker = new Faker({ locale: 'el', localeFallback: 'en' });
faker.locales['el'] = require('../lib/locales/el');
faker.locales['en'] = require('../lib/locales/en');
module['exports'] = faker;
5 changes: 5 additions & 0 deletions locale/en_AU_ocker.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_AU_ocker', localeFallback: 'en' });
faker.locales['en_AU_ocker'] = require('../lib/locales/en_AU_ocker');
faker.locales['en'] = require('../lib/locales/en');
module['exports'] = faker;
5 changes: 0 additions & 5 deletions locale/en_au_ocker.js

This file was deleted.

5 changes: 5 additions & 0 deletions locale/pt_PT.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var Faker = require('../lib');
var faker = new Faker({ locale: 'pt_PT', localeFallback: 'en' });
faker.locales['pt_PT'] = require('../lib/locales/pt_PT');
faker.locales['en'] = require('../lib/locales/en');
module['exports'] = faker;
5 changes: 5 additions & 0 deletions locale/zu_ZA.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var Faker = require('../lib');
var faker = new Faker({ locale: 'zu_ZA', localeFallback: 'en' });
faker.locales['zu_ZA'] = require('../lib/locales/zu_ZA');
faker.locales['en'] = require('../lib/locales/en');
module['exports'] = faker;

0 comments on commit 7da419d

Please sign in to comment.