aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCarl Törnqvist <[email protected]>2015-10-06 10:15:11 +0200
committerCarl Törnqvist <[email protected]>2015-10-06 10:15:11 +0200
commit6f63cc22827d499e99d6fe16968ea0a36d50c516 (patch)
treeb2371532eb31b4c1d4e8d8759bc71d7807f505b3 /lib
parent5a91b6432bd043eb897681dc4c2952fd20e657a2 (diff)
downloadfaker-6f63cc22827d499e99d6fe16968ea0a36d50c516.tar.xz
faker-6f63cc22827d499e99d6fe16968ea0a36d50c516.zip
Added Swedish locale for date
Diffstat (limited to 'lib')
-rw-r--r--lib/locales/sv/date/index.js4
-rw-r--r--lib/locales/sv/date/month.js31
-rw-r--r--lib/locales/sv/date/weekday.js21
-rw-r--r--lib/locales/sv/index.js1
4 files changed, 57 insertions, 0 deletions
diff --git a/lib/locales/sv/date/index.js b/lib/locales/sv/date/index.js
new file mode 100644
index 00000000..8c45d3f6
--- /dev/null
+++ b/lib/locales/sv/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/sv/date/month.js b/lib/locales/sv/date/month.js
new file mode 100644
index 00000000..0dbff0f9
--- /dev/null
+++ b/lib/locales/sv/date/month.js
@@ -0,0 +1,31 @@
+// Source: http://unicode.org/cldr/trac/browser/tags/release-27/common/main/en.xml#L1799
+module["exports"] = {
+ wide: [
+ "januari",
+ "februari",
+ "mars",
+ "april",
+ "maj",
+ "juni",
+ "juli",
+ "augusti",
+ "september",
+ "oktober",
+ "november",
+ "december"
+ ],
+ abbr: [
+ "jan",
+ "feb",
+ "mar",
+ "apr",
+ "maj",
+ "jun",
+ "jul",
+ "aug",
+ "sep",
+ "okt",
+ "nov",
+ "dec"
+ ]
+};
diff --git a/lib/locales/sv/date/weekday.js b/lib/locales/sv/date/weekday.js
new file mode 100644
index 00000000..c2ddf016
--- /dev/null
+++ b/lib/locales/sv/date/weekday.js
@@ -0,0 +1,21 @@
+// Source: http://unicode.org/cldr/trac/browser/tags/release-27/common/main/en.xml#L1847
+module["exports"] = {
+ wide: [
+ "söndag",
+ "måndag",
+ "tisdag",
+ "onsdag",
+ "torsdag",
+ "fredag",
+ "lördag"
+ ],
+ abbr: [
+ "sön",
+ "mån",
+ "tis",
+ "ons",
+ "tor",
+ "fre",
+ "lör"
+ ]
+};
diff --git a/lib/locales/sv/index.js b/lib/locales/sv/index.js
index 36e679c7..921680dd 100644
--- a/lib/locales/sv/index.js
+++ b/lib/locales/sv/index.js
@@ -9,3 +9,4 @@ sv.phone_number = require("./phone_number");
sv.cell_phone = require("./cell_phone");
sv.commerce = require("./commerce");
sv.team = require("./team");
+sv.date = require("./date");