diff options
| author | Theo Junge <[email protected]> | 2021-01-28 14:56:11 +0100 |
|---|---|---|
| committer | Theo Junge <[email protected]> | 2021-01-28 14:56:11 +0100 |
| commit | 589266a84bb0f77427ec530e3f4e85798ec2f7ba (patch) | |
| tree | 50f97110a760d37f2e535a06d9ac626127d5b57c /lib | |
| parent | 22fc11df449763e3902dc0964125c35f97842fb3 (diff) | |
| download | faker-589266a84bb0f77427ec530e3f4e85798ec2f7ba.tar.xz faker-589266a84bb0f77427ec530e3f4e85798ec2f7ba.zip | |
Added translations and weekdays in german.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/locales/de/date/index.js | 4 | ||||
| -rw-r--r-- | lib/locales/de/date/month.js | 63 | ||||
| -rw-r--r-- | lib/locales/de/date/weekday.js | 43 |
3 files changed, 110 insertions, 0 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." + ] +}; |
