1 // moment.js locale configuration
2 // locale : german (de)
3 // author : lluchs : https://github.com/lluchs
4 // author: Menelion ElensĂșle: https://github.com/Oire
7 // Comment out broken wrapper, see T145382
8 /*if (typeof define === 'function' && define.amd) {
9 define(['moment'], factory); // AMD
10 } else if (typeof exports === 'object') {
11 module.exports = factory(require('../moment')); // Node
13 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
17 function processRelativeTime(number
, withoutSuffix
, key
, isFuture
) {
19 'm': ['eine Minute', 'einer Minute'],
20 'h': ['eine Stunde', 'einer Stunde'],
21 'd': ['ein Tag', 'einem Tag'],
22 'dd': [number
+ ' Tage', number
+ ' Tagen'],
23 'M': ['ein Monat', 'einem Monat'],
24 'MM': [number
+ ' Monate', number
+ ' Monaten'],
25 'y': ['ein Jahr', 'einem Jahr'],
26 'yy': [number
+ ' Jahre', number
+ ' Jahren']
28 return withoutSuffix
? format
[key
][0] : format
[key
][1];
31 return moment
.defineLocale('de', {
32 months
: 'Januar_Februar_MĂ€rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
33 monthsShort
: 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
34 weekdays
: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
35 weekdaysShort
: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
36 weekdaysMin
: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
42 LLL
: 'D. MMMM YYYY LT',
43 LLLL
: 'dddd, D. MMMM YYYY LT'
46 sameDay
: '[Heute um] LT [Uhr]',
48 nextDay
: '[Morgen um] LT [Uhr]',
49 nextWeek
: 'dddd [um] LT [Uhr]',
50 lastDay
: '[Gestern um] LT [Uhr]',
51 lastWeek
: '[letzten] dddd [um] LT [Uhr]'
56 s
: 'ein paar Sekunden',
57 m
: processRelativeTime
,
59 h
: processRelativeTime
,
61 d
: processRelativeTime
,
62 dd
: processRelativeTime
,
63 M
: processRelativeTime
,
64 MM
: processRelativeTime
,
65 y
: processRelativeTime
,
66 yy
: processRelativeTime
68 ordinalParse
: /\d{1,2}\./,
71 dow
: 1, // Monday is the first day of the week.
72 doy
: 4 // The week that contains Jan 4th is the first week of the year.