aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo Junge <[email protected]>2021-01-28 17:11:29 +0100
committerTheo Junge <[email protected]>2021-01-28 17:11:29 +0100
commit06b418595e4a2a0f0e23646cb1fbbccc33536c1f (patch)
treec56e4dbc49b9783a253adbdf2e2aa8a45eb457fb /lib
parent589266a84bb0f77427ec530e3f4e85798ec2f7ba (diff)
downloadfaker-06b418595e4a2a0f0e23646cb1fbbccc33536c1f.tar.xz
faker-06b418595e4a2a0f0e23646cb1fbbccc33536c1f.zip
Added weekdays and months in French.
Diffstat (limited to 'lib')
-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
5 files changed, 113 insertions, 1 deletions
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");