aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarak <[email protected]>2021-01-28 16:05:54 -0500
committerGitHub <[email protected]>2021-01-28 16:05:54 -0500
commit72fb83d66f275b8337406cc5cbaa29f4ac32b91a (patch)
tree90715e24c20ef2a32c92446a3eb2f833f9ea7f07 /lib
parent68528f54d1ab4218e968365e1127e57092327440 (diff)
parentca1aa958f2057e5f185647cf9b62641c8a371233 (diff)
downloadfaker-72fb83d66f275b8337406cc5cbaa29f4ac32b91a.tar.xz
faker-72fb83d66f275b8337406cc5cbaa29f4ac32b91a.zip
Merge pull request #1092 from theoshallburn/master
Adding weekdays and months for german and french
Diffstat (limited to 'lib')
-rw-r--r--lib/locales/de/date/index.js4
-rw-r--r--lib/locales/de/date/month.js63
-rw-r--r--lib/locales/de/date/weekday.js43
-rw-r--r--lib/locales/de/index.js3
-rw-r--r--lib/locales/fr/date/index.js4
-rw-r--r--lib/locales/fr/date/month.js63
-rw-r--r--lib/locales/fr/date/weekday.js43
-rw-r--r--lib/locales/fr/index.js1
8 files changed, 223 insertions, 1 deletions
diff --git a/lib/locales/de/date/index.js b/lib/locales/de/date/index.js
new file mode 100644
index 00000000..8c45d3f6
--- /dev/null
+++ b/lib/locales/de/date/index.js
@@ -0,0 +1,4 @@
+var date = {};
+module["exports"] = date;
+date.month = require("./month");
+date.weekday = require("./weekday");
diff --git a/lib/locales/de/date/month.js b/lib/locales/de/date/month.js
new file mode 100644
index 00000000..2d6bd7de
--- /dev/null
+++ b/lib/locales/de/date/month.js
@@ -0,0 +1,63 @@
+// Source: http://unicode.org/cldr/trac/browser/tags/release-27/common/main/en.xml#L1799
+module['exports'] = {
+ wide: [
+ 'Januar',
+ 'Februar',
+ 'März',
+ 'April',
+ 'Mai',
+ 'Juni',
+ 'Juli',
+ 'August',
+ 'September',
+ 'Oktober',
+ 'November',
+ 'Dezember',
+ ],
+ // Property "wide_context" is optional, if not set then "wide" will be used instead
+ // It is used to specify a word in context, which may differ from a stand-alone word
+ wide_context: [
+ 'Januar',
+ 'Februar',
+ 'März',
+ 'April',
+ 'Mai',
+ 'Juni',
+ 'Juli',
+ 'August',
+ 'September',
+ 'Oktober',
+ 'November',
+ 'Dezember',
+ ],
+ abbr: [
+ 'Jan',
+ 'Feb',
+ 'Mrz',
+ 'Apr',
+ 'Mai',
+ 'Jun',
+ 'Jul',
+ 'Aug',
+ 'Sep',
+ 'Okt',
+ 'Nov',
+ 'Dez',
+ ],
+ // Property "abbr_context" is optional, if not set then "abbr" will be used instead
+ // It is used to specify a word in context, which may differ from a stand-alone word
+ abbr_context: [
+ 'Jan',
+ 'Feb',
+ 'Mrz',
+ 'Apr',
+ 'Mai',
+ 'Jun',
+ 'Jul',
+ 'Aug',
+ 'Sep',
+ 'Okt',
+ 'Nov',
+ 'Dez',
+ ],
+};
diff --git a/lib/locales/de/date/weekday.js b/lib/locales/de/date/weekday.js
new file mode 100644
index 00000000..03754a26
--- /dev/null
+++ b/lib/locales/de/date/weekday.js
@@ -0,0 +1,43 @@
+// Source: http://unicode.org/cldr/trac/browser/tags/release-27/common/main/en.xml#L1847
+module["exports"] = {
+ wide: [
+ "Sonntag",
+ "Montag",
+ "Dienstag",
+ "Mittwoch",
+ "Donnerstag",
+ "Freitag",
+ "Samstag"
+ ],
+ // Property "wide_context" is optional, if not set then "wide" will be used instead
+ // It is used to specify a word in context, which may differ from a stand-alone word
+ wide_context: [
+ "Sonntag",
+ "Montag",
+ "Dienstag",
+ "Mittwoch",
+ "Donnerstag",
+ "Freitag",
+ "Samstag"
+ ],
+ abbr: [
+ "So.",
+ "Mo.",
+ "Di.",
+ "Mi.",
+ "Do.",
+ "Fr.",
+ "Sa."
+ ],
+ // Property "abbr_context" is optional, if not set then "abbr" will be used instead
+ // It is used to specify a word in context, which may differ from a stand-alone word
+ abbr_context: [
+ "So.",
+ "Mo.",
+ "Di.",
+ "Mi.",
+ "Do.",
+ "Fr.",
+ "Sa."
+ ]
+};
diff --git a/lib/locales/de/index.js b/lib/locales/de/index.js
index 6dfe27a3..92da8685 100644
--- a/lib/locales/de/index.js
+++ b/lib/locales/de/index.js
@@ -7,4 +7,5 @@ de.internet = require("./internet");
de.lorem = require("./lorem");
de.name = require("./name");
de.phone_number = require("./phone_number");
-de.cell_phone = require("./cell_phone"); \ No newline at end of file
+de.cell_phone = require("./cell_phone");
+de.date = require("./date");
diff --git a/lib/locales/fr/date/index.js b/lib/locales/fr/date/index.js
new file mode 100644
index 00000000..8c45d3f6
--- /dev/null
+++ b/lib/locales/fr/date/index.js
@@ -0,0 +1,4 @@
+var date = {};
+module["exports"] = date;
+date.month = require("./month");
+date.weekday = require("./weekday");
diff --git a/lib/locales/fr/date/month.js b/lib/locales/fr/date/month.js
new file mode 100644
index 00000000..39b49c48
--- /dev/null
+++ b/lib/locales/fr/date/month.js
@@ -0,0 +1,63 @@
+// Source: http://unicode.org/cldr/trac/browser/tags/release-27/common/main/en.xml#L1799
+module['exports'] = {
+ wide: [
+ 'janvier',
+ 'février',
+ 'mars',
+ 'avril',
+ 'mai',
+ 'juin',
+ 'juillet',
+ 'août',
+ 'septembre',
+ 'octobre',
+ 'novembre',
+ 'décembre',
+ ],
+ // Property "wide_context" is optional, if not set then "wide" will be used instead
+ // It is used to specify a word in context, which may differ from a stand-alone word
+ wide_context: [
+ 'janvier',
+ 'février',
+ 'mars',
+ 'avril',
+ 'mai',
+ 'juin',
+ 'juillet',
+ 'août',
+ 'septembre',
+ 'octobre',
+ 'novembre',
+ 'décembre',
+ ],
+ abbr: [
+ 'janv.',
+ 'févr.',
+ 'mars',
+ 'avril',
+ 'mai',
+ 'juin',
+ 'juil.',
+ 'août',
+ 'sept.',
+ 'oct.',
+ 'nov.',
+ 'déc.',
+ ],
+ // Property "abbr_context" is optional, if not set then "abbr" will be used instead
+ // It is used to specify a word in context, which may differ from a stand-alone word
+ abbr_context: [
+ 'janv.',
+ 'févr.',
+ 'mars',
+ 'avril',
+ 'mai',
+ 'juin',
+ 'juil.',
+ 'août',
+ 'sept.',
+ 'oct.',
+ 'nov.',
+ 'déc.',
+ ],
+};
diff --git a/lib/locales/fr/date/weekday.js b/lib/locales/fr/date/weekday.js
new file mode 100644
index 00000000..1d99ff19
--- /dev/null
+++ b/lib/locales/fr/date/weekday.js
@@ -0,0 +1,43 @@
+// Source: http://unicode.org/cldr/trac/browser/tags/release-27/common/main/en.xml#L1847
+module["exports"] = {
+ wide: [
+ "Dimanche",
+ "Lundi",
+ "Mardi",
+ "Mercredi",
+ "Jeudi",
+ "Vendredi",
+ "Samedi"
+ ],
+ // Property "wide_context" is optional, if not set then "wide" will be used instead
+ // It is used to specify a word in context, which may differ from a stand-alone word
+ wide_context: [
+ "Dimanche",
+ "Lundi",
+ "Mardi",
+ "Mercredi",
+ "Jeudi",
+ "Vendredi",
+ "Samedi"
+ ],
+ abbr: [
+ "Dim",
+ "Lun",
+ "Mar",
+ "Mer",
+ "Jeu",
+ "Ven",
+ "Sam"
+ ],
+ // Property "abbr_context" is optional, if not set then "abbr" will be used instead
+ // It is used to specify a word in context, which may differ from a stand-alone word
+ abbr_context: [
+ "Dim",
+ "Lun",
+ "Mar",
+ "Mer",
+ "Jeu",
+ "Ven",
+ "Sam"
+ ]
+};
diff --git a/lib/locales/fr/index.js b/lib/locales/fr/index.js
index f81a8285..7007e9a5 100644
--- a/lib/locales/fr/index.js
+++ b/lib/locales/fr/index.js
@@ -7,3 +7,4 @@ fr.internet = require("./internet");
fr.lorem = require("./lorem");
fr.name = require("./name");
fr.phone_number = require("./phone_number");
+fr.date = require("./date");