diff options
| author | Lucas Jellema <[email protected]> | 2020-09-13 18:05:12 +0200 |
|---|---|---|
| committer | Lucas Jellema <[email protected]> | 2020-09-13 18:05:12 +0200 |
| commit | 0d0367a02ace4ff59550b055d3af04e83d212403 (patch) | |
| tree | d716be835ac05ca32cbeadc04e50a52e65357c08 /lib | |
| parent | 91dc8a3372426bc691be56153b33e81a16459f49 (diff) | |
| download | faker-0d0367a02ace4ff59550b055d3af04e83d212403.tar.xz faker-0d0367a02ace4ff59550b055d3af04e83d212403.zip | |
Extended NL locale for date: names of weekdays and months
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/locales/nl/date/index.js | 4 | ||||
| -rw-r--r-- | lib/locales/nl/date/month.js | 63 | ||||
| -rw-r--r-- | lib/locales/nl/date/weekday.js | 43 | ||||
| -rw-r--r-- | lib/locales/nl/index.js | 1 |
4 files changed, 111 insertions, 0 deletions
diff --git a/lib/locales/nl/date/index.js b/lib/locales/nl/date/index.js new file mode 100644 index 00000000..8c45d3f6 --- /dev/null +++ b/lib/locales/nl/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/nl/date/month.js b/lib/locales/nl/date/month.js new file mode 100644 index 00000000..1f56abaa --- /dev/null +++ b/lib/locales/nl/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: [ + "Januari", + "Februari", + "Maart", + "April", + "Mei", + "Juni", + "Juli", + "Augustus", + "September", + "Oktober", + "November", + "December" + ], + // 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: [ + "Januari", + "Februari", + "Maart", + "April", + "Mei", + "Juni", + "Juli", + "Augustus", + "September", + "Oktober", + "November", + "December" + ], + abbr: [ + "Jan", + "Feb", + "Mrt", + "Apr", + "Mei", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Dec" + ], + // 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", + "Mrt", + "Apr", + "Mei", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Dec" + ] +}; diff --git a/lib/locales/nl/date/weekday.js b/lib/locales/nl/date/weekday.js new file mode 100644 index 00000000..f4a4fb7a --- /dev/null +++ b/lib/locales/nl/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: [ + "Zondag", + "Maandag", + "Dinsdag", + "Woensdag", + "Donderdag", + "Vrijdag", + "Zaterdag" + ], + // 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: [ + "Zondag", + "Maandag", + "Dinsdag", + "Woensdag", + "Donderdag", + "Vrijdag", + "Zaterdag" + ], + abbr: [ + "Zo", + "Ma", + "Di", + "Wo", + "Do", + "Vr", + "Za" + ], + // 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: [ + "Zo", + "Ma", + "Di", + "Wo", + "Do", + "Vr", + "Za" + ] +}; diff --git a/lib/locales/nl/index.js b/lib/locales/nl/index.js index 7e36c575..8fd49644 100644 --- a/lib/locales/nl/index.js +++ b/lib/locales/nl/index.js @@ -3,6 +3,7 @@ module['exports'] = nl; nl.title = "Dutch"; nl.address = require("./address"); nl.company = require("./company"); +nl.date = require("./date"); nl.internet = require("./internet"); nl.lorem = require("./lorem"); nl.name = require("./name"); |
