aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarak <[email protected]>2018-09-23 11:17:22 -0400
committerGitHub <[email protected]>2018-09-23 11:17:22 -0400
commit434ff8ca7ff4de195ac1fa67ee3873dfff996396 (patch)
treec16fac5bced41c34118440f6d905e75e7a2568ef /lib
parent49f0cea3b9b609ca643fa0e4e98f09076ad004c2 (diff)
parentc1f82c1f43c0b0a860c7b4e8f24a7ed379dcc89f (diff)
downloadfaker-434ff8ca7ff4de195ac1fa67ee3873dfff996396.tar.xz
faker-434ff8ca7ff4de195ac1fa67ee3873dfff996396.zip
Merge pull request #668 from jfreyre/feature/register-new-fr-ch-locale
Added new locale `fr_CH`
Diffstat (limited to 'lib')
-rw-r--r--lib/locales.js1
-rw-r--r--lib/locales/fr_CH/address/city.js3
-rw-r--r--lib/locales/fr_CH/address/city_name.js175
-rw-r--r--lib/locales/fr_CH/address/country_code.js3
-rw-r--r--lib/locales/fr_CH/address/default_country.js3
-rw-r--r--lib/locales/fr_CH/address/index.js9
-rw-r--r--lib/locales/fr_CH/address/postcode.js11
-rw-r--r--lib/locales/fr_CH/address/state.js28
-rw-r--r--lib/locales/fr_CH/index.js6
-rw-r--r--lib/locales/fr_CH/internet/domain_suffix.js8
-rw-r--r--lib/locales/fr_CH/internet/index.js3
-rw-r--r--lib/locales/fr_CH/phone_number/formats.js17
-rw-r--r--lib/locales/fr_CH/phone_number/index.js3
13 files changed, 270 insertions, 0 deletions
diff --git a/lib/locales.js b/lib/locales.js
index e22952ad..7b0e5932 100644
--- a/lib/locales.js
+++ b/lib/locales.js
@@ -19,6 +19,7 @@ exports['es_MX'] = require('./locales/es_MX');
exports['fa'] = require('./locales/fa');
exports['fr'] = require('./locales/fr');
exports['fr_CA'] = require('./locales/fr_CA');
+exports['fr_CH'] = require('./locales/fr_CH');
exports['ge'] = require('./locales/ge');
exports['id_ID'] = require('./locales/id_ID');
exports['it'] = require('./locales/it');
diff --git a/lib/locales/fr_CH/address/city.js b/lib/locales/fr_CH/address/city.js
new file mode 100644
index 00000000..d62eafb1
--- /dev/null
+++ b/lib/locales/fr_CH/address/city.js
@@ -0,0 +1,3 @@
+module["exports"] = [
+ "#{city_name}"
+];
diff --git a/lib/locales/fr_CH/address/city_name.js b/lib/locales/fr_CH/address/city_name.js
new file mode 100644
index 00000000..3f320626
--- /dev/null
+++ b/lib/locales/fr_CH/address/city_name.js
@@ -0,0 +1,175 @@
+module["exports"] = [
+ "Aarau",
+ "Adliswil",
+ "Aesch",
+ "Affoltern am Albis",
+ "Aigle",
+ "Allschwil",
+ "Altdorf",
+ "Altstätten",
+ "Amriswil",
+ "Appenzell",
+ "Arbon",
+ "Arlesheim",
+ "Arosa",
+ "Arth",
+ "Baar",
+ "Baden",
+ "Bassersdorf",
+ "Bellinzone",
+ "Belp",
+ "Berne",
+ "Berthoud",
+ "Bienne",
+ "Binningen",
+ "Birsfelden",
+ "Brigue-Glis",
+ "Brugg",
+ "Buchs",
+ "Bulle",
+ "Bussigny",
+ "Bâle",
+ "Bülach",
+ "Carouge",
+ "Cham",
+ "Chiasso",
+ "Chêne-Bougeries",
+ "Coire",
+ "Crissier",
+ "Davos",
+ "Delémont",
+ "Dietikon",
+ "Dübendorf",
+ "Ebikon",
+ "Einsiedeln",
+ "Emmen",
+ "Flawil",
+ "Frauenfeld",
+ "Freienbach",
+ "Fribourg",
+ "Genève",
+ "Gland",
+ "Glaris Centre",
+ "Glaris Nord",
+ "Gossau",
+ "Granges",
+ "Herisau",
+ "Hinwil",
+ "Horgen",
+ "Horw",
+ "Illnau-Effretikon",
+ "Interlaken",
+ "Ittigen",
+ "Kloten",
+ "Kreuzlingen",
+ "Kriens",
+ "Köniz",
+ "Küsnacht",
+ "La Chaux-de-Fonds",
+ "La Neuveville",
+ "La Tour-de-Peilz",
+ "Lancy",
+ "Langenthal",
+ "Lausanne",
+ "Le Grand-Saconnex",
+ "Le Locle",
+ "Lenzbourg",
+ "Liestal",
+ "Locarno",
+ "Lucerne",
+ "Lugano",
+ "Lyss",
+ "Martigny",
+ "Meilen",
+ "Mendrisio",
+ "Meyrin",
+ "Monthey",
+ "Montreux",
+ "Morat",
+ "Morges",
+ "Moutier",
+ "Muri bei Bern",
+ "Muttenz",
+ "Männedorf",
+ "Möhlin",
+ "Münchenbuchsee",
+ "Münchenstein",
+ "Münsingen",
+ "Neuchâtel",
+ "Neuhausen am Rheinfall",
+ "Nyon",
+ "Oberwil",
+ "Oftringen",
+ "Olten",
+ "Onex",
+ "Opfikon",
+ "Ostermundigen",
+ "Payerne",
+ "Peseux",
+ "Pfäffikon",
+ "Plan-les-Ouates",
+ "Poliez-Pittet",
+ "Porrentruy",
+ "Pratteln",
+ "Prilly",
+ "Pully",
+ "Rapperswil-Jona",
+ "Regensdorf",
+ "Reinach",
+ "Renens",
+ "Rheinfelden",
+ "Richterswil",
+ "Riehen",
+ "Risch-Rotkreuz",
+ "Romanshorn",
+ "Rorschach",
+ "Rüti",
+ "Saint-Gall",
+ "Saint-Moritz",
+ "Sarnen",
+ "Schaffhouse",
+ "Schlieren",
+ "Schwytz",
+ "Sierre",
+ "Sion",
+ "Soleure",
+ "Spiez",
+ "Spreitenbach",
+ "Stans",
+ "Steffisburg",
+ "Steinhausen",
+ "Stäfa",
+ "Suhr",
+ "Sursee",
+ "Thalwil",
+ "Thoune",
+ "Thônex",
+ "Urdorf",
+ "Uster",
+ "Uzwil",
+ "Vernier",
+ "Versoix",
+ "Vevey",
+ "Veyrier",
+ "Villars-sur-Glâne",
+ "Viège",
+ "Volketswil",
+ "Wallisellen",
+ "Weinfelden",
+ "Wettingen",
+ "Wetzikon",
+ "Wil",
+ "Winterthour",
+ "Wohlen",
+ "Worb",
+ "Wädenswil",
+ "Yverdon-les-Bains",
+ "Zermatt",
+ "Zofingue",
+ "Zollikofen",
+ "Zollikon",
+ "Zoug",
+ "Zuchwil",
+ "Zurich",
+ "Écublens"
+];
diff --git a/lib/locales/fr_CH/address/country_code.js b/lib/locales/fr_CH/address/country_code.js
new file mode 100644
index 00000000..21074410
--- /dev/null
+++ b/lib/locales/fr_CH/address/country_code.js
@@ -0,0 +1,3 @@
+module["exports"] = [
+ "CH",
+];
diff --git a/lib/locales/fr_CH/address/default_country.js b/lib/locales/fr_CH/address/default_country.js
new file mode 100644
index 00000000..4ea8078d
--- /dev/null
+++ b/lib/locales/fr_CH/address/default_country.js
@@ -0,0 +1,3 @@
+module["exports"] = [
+ "Suisse"
+];
diff --git a/lib/locales/fr_CH/address/index.js b/lib/locales/fr_CH/address/index.js
new file mode 100644
index 00000000..23779fc6
--- /dev/null
+++ b/lib/locales/fr_CH/address/index.js
@@ -0,0 +1,9 @@
+var address = {};
+module['exports'] = address;
+address.country_code = require("./country_code");
+address.city = require("./city");
+address.city_name = require("./city_name");
+address.default_country = require("./default_country");
+address.postcode = require("./postcode");
+address.state = require("./state");
+
diff --git a/lib/locales/fr_CH/address/postcode.js b/lib/locales/fr_CH/address/postcode.js
new file mode 100644
index 00000000..cb94e7a7
--- /dev/null
+++ b/lib/locales/fr_CH/address/postcode.js
@@ -0,0 +1,11 @@
+module["exports"] = [
+ "1###",
+ "2###",
+ "3###",
+ "4###",
+ "5###",
+ "6###",
+ "7###",
+ "8###",
+ "9###"
+];
diff --git a/lib/locales/fr_CH/address/state.js b/lib/locales/fr_CH/address/state.js
new file mode 100644
index 00000000..09a036d5
--- /dev/null
+++ b/lib/locales/fr_CH/address/state.js
@@ -0,0 +1,28 @@
+module["exports"] = [
+ "Argovie",
+ "Appenzell Rhodes-Intérieures",
+ "Appenzell Rhodes-Extérieures",
+ "Bâle-Ville",
+ "Bâle-Campagne",
+ "Berne",
+ "Fribourg",
+ "Genève",
+ "Glaris",
+ "Grisons",
+ "Jura",
+ "Lucerne",
+ "Neuchâtel",
+ "Nidwald",
+ "Obwald",
+ "Schaffhouse",
+ "Schwyt",
+ "Soleure",
+ "Saint-Gall",
+ "Thurgovie",
+ "Tessin",
+ "Uri",
+ "Valai",
+ "Vaud",
+ "Zoug",
+ "Zurich"
+];
diff --git a/lib/locales/fr_CH/index.js b/lib/locales/fr_CH/index.js
new file mode 100644
index 00000000..6c5af44d
--- /dev/null
+++ b/lib/locales/fr_CH/index.js
@@ -0,0 +1,6 @@
+var fr_CH = {};
+module['exports'] = fr_CH;
+fr_CH.title = "French (Switzerland)";
+fr_CH.address = require("./address");
+fr_CH.internet = require("./internet");
+fr_CH.phone_number = require("./phone_number");
diff --git a/lib/locales/fr_CH/internet/domain_suffix.js b/lib/locales/fr_CH/internet/domain_suffix.js
new file mode 100644
index 00000000..5a1da08c
--- /dev/null
+++ b/lib/locales/fr_CH/internet/domain_suffix.js
@@ -0,0 +1,8 @@
+module["exports"] = [
+ "com",
+ "net",
+ "biz",
+ "ch",
+ "ch",
+ "ch"
+];
diff --git a/lib/locales/fr_CH/internet/index.js b/lib/locales/fr_CH/internet/index.js
new file mode 100644
index 00000000..abfa2480
--- /dev/null
+++ b/lib/locales/fr_CH/internet/index.js
@@ -0,0 +1,3 @@
+var internet = {};
+module['exports'] = internet;
+internet.domain_suffix = require("./domain_suffix");
diff --git a/lib/locales/fr_CH/phone_number/formats.js b/lib/locales/fr_CH/phone_number/formats.js
new file mode 100644
index 00000000..ff12096b
--- /dev/null
+++ b/lib/locales/fr_CH/phone_number/formats.js
@@ -0,0 +1,17 @@
+module["exports"] = [
+ "0800 ### ###",
+ "0800 ## ## ##",
+ "0## ### ## ##",
+ "0## ### ## ##",
+ "+41 ## ### ## ##",
+ "0900 ### ###",
+ "076 ### ## ##",
+ "079 ### ## ##",
+ "078 ### ## ##",
+ "+4176 ### ## ##",
+ "+4178 ### ## ##",
+ "+4179 ### ## ##",
+ "0041 76 ### ## ##",
+ "0041 78 ### ## ##",
+ "0041 79 ### ## ##",
+];
diff --git a/lib/locales/fr_CH/phone_number/index.js b/lib/locales/fr_CH/phone_number/index.js
new file mode 100644
index 00000000..8d35e011
--- /dev/null
+++ b/lib/locales/fr_CH/phone_number/index.js
@@ -0,0 +1,3 @@
+var phone_number = {};
+module['exports'] = phone_number;
+phone_number.formats = require("./formats");