UNPKG

3.18 kBJavaScriptView Raw
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
5//! author : Mikolaj Dadela : https://github.com/mik01aj
6
7;(function (global, factory) {
8 typeof exports === 'object' && typeof module !== 'undefined'
9 && typeof require === 'function' ? factory(require('../moment')) :
10 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
11 factory(global.moment)
12}(this, (function (moment) { 'use strict';
13
14 //! moment.js locale configuration
15
16 function processRelativeTime(number, withoutSuffix, key, isFuture) {
17 var format = {
18 m: ['eine Minute', 'einer Minute'],
19 h: ['eine Stunde', 'einer Stunde'],
20 d: ['ein Tag', 'einem Tag'],
21 dd: [number + ' Tage', number + ' Tagen'],
22 w: ['eine Woche', 'einer Woche'],
23 M: ['ein Monat', 'einem Monat'],
24 MM: [number + ' Monate', number + ' Monaten'],
25 y: ['ein Jahr', 'einem Jahr'],
26 yy: [number + ' Jahre', number + ' Jahren'],
27 };
28 return withoutSuffix ? format[key][0] : format[key][1];
29 }
30
31 var de = moment.defineLocale('de', {
32 months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
33 '_'
34 ),
35 monthsShort:
36 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
37 monthsParseExact: true,
38 weekdays:
39 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
40 '_'
41 ),
42 weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
43 weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
44 weekdaysParseExact: true,
45 longDateFormat: {
46 LT: 'HH:mm',
47 LTS: 'HH:mm:ss',
48 L: 'DD.MM.YYYY',
49 LL: 'D. MMMM YYYY',
50 LLL: 'D. MMMM YYYY HH:mm',
51 LLLL: 'dddd, D. MMMM YYYY HH:mm',
52 },
53 calendar: {
54 sameDay: '[heute um] LT [Uhr]',
55 sameElse: 'L',
56 nextDay: '[morgen um] LT [Uhr]',
57 nextWeek: 'dddd [um] LT [Uhr]',
58 lastDay: '[gestern um] LT [Uhr]',
59 lastWeek: '[letzten] dddd [um] LT [Uhr]',
60 },
61 relativeTime: {
62 future: 'in %s',
63 past: 'vor %s',
64 s: 'ein paar Sekunden',
65 ss: '%d Sekunden',
66 m: processRelativeTime,
67 mm: '%d Minuten',
68 h: processRelativeTime,
69 hh: '%d Stunden',
70 d: processRelativeTime,
71 dd: processRelativeTime,
72 w: processRelativeTime,
73 ww: '%d Wochen',
74 M: processRelativeTime,
75 MM: processRelativeTime,
76 y: processRelativeTime,
77 yy: processRelativeTime,
78 },
79 dayOfMonthOrdinalParse: /\d{1,2}\./,
80 ordinal: '%d.',
81 week: {
82 dow: 1, // Monday is the first day of the week.
83 doy: 4, // The week that contains Jan 4th is the first week of the year.
84 },
85 });
86
87 return de;
88
89})));