1 //! moment.js locale configuration
2 //! locale : austrian german (de-at)
3 //! author : lluchs : https://github.com/lluchs
4 //! author: Menelion Elensúle: https://github.com/Oire
5 //! author : Martin Groller : https://github.com/MadMG
6 //! author : Mikolaj Dadela : https://github.com/mik01aj
8 import moment from '../moment';
10 function processRelativeTime(number, withoutSuffix, key, isFuture) {
12 'm': ['eine Minute', 'einer Minute'],
13 'h': ['eine Stunde', 'einer Stunde'],
14 'd': ['ein Tag', 'einem Tag'],
15 'dd': [number + ' Tage', number + ' Tagen'],
16 'M': ['ein Monat', 'einem Monat'],
17 'MM': [number + ' Monate', number + ' Monaten'],
18 'y': ['ein Jahr', 'einem Jahr'],
19 'yy': [number + ' Jahre', number + ' Jahren']
21 return withoutSuffix ? format[key][0] : format[key][1];
24 export default moment.defineLocale('de-at', {
25 months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
26 monthsShort : 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
27 monthsParseExact : true,
28 weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
29 weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
30 weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
31 weekdaysParseExact : true,
37 LLL : 'D. MMMM YYYY HH:mm',
38 LLLL : 'dddd, D. MMMM YYYY HH:mm'
41 sameDay: '[heute um] LT [Uhr]',
43 nextDay: '[morgen um] LT [Uhr]',
44 nextWeek: 'dddd [um] LT [Uhr]',
45 lastDay: '[gestern um] LT [Uhr]',
46 lastWeek: '[letzten] dddd [um] LT [Uhr]'
51 s : 'ein paar Sekunden',
52 m : processRelativeTime,
54 h : processRelativeTime,
56 d : processRelativeTime,
57 dd : processRelativeTime,
58 M : processRelativeTime,
59 MM : processRelativeTime,
60 y : processRelativeTime,
61 yy : processRelativeTime
63 ordinalParse: /\d{1,2}\./,
66 dow : 1, // Monday is the first day of the week.
67 doy : 4 // The week that contains Jan 4th is the first week of the year.