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
8 // Comment out broken wrapper, see T145382
9 /*if (typeof define === 'function' && define.amd) {
10 define(['moment'], factory); // AMD
11 } else if (typeof exports === 'object') {
12 module.exports = factory(require('../moment')); // Node
14 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
18 function processRelativeTime(number, withoutSuffix, key, isFuture) {
20 'm': ['eine Minute', 'einer Minute'],
21 'h': ['eine Stunde', 'einer Stunde'],
22 'd': ['ein Tag', 'einem Tag'],
23 'dd': [number + ' Tage', number + ' Tagen'],
24 'M': ['ein Monat', 'einem Monat'],
25 'MM': [number + ' Monate', number + ' Monaten'],
26 'y': ['ein Jahr', 'einem Jahr'],
27 'yy': [number + ' Jahre', number + ' Jahren']
29 return withoutSuffix ? format[key][0] : format[key][1];
32 return moment.defineLocale('de-at', {
33 months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
34 monthsShort : 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
35 weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
36 weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
37 weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
43 LLL : 'D. MMMM YYYY LT',
44 LLLL : 'dddd, D. MMMM YYYY LT'
47 sameDay: '[Heute um] LT [Uhr]',
49 nextDay: '[Morgen um] LT [Uhr]',
50 nextWeek: 'dddd [um] LT [Uhr]',
51 lastDay: '[Gestern um] LT [Uhr]',
52 lastWeek: '[letzten] dddd [um] LT [Uhr]'
57 s : 'ein paar Sekunden',
58 m : processRelativeTime,
60 h : processRelativeTime,
62 d : processRelativeTime,
63 dd : processRelativeTime,
64 M : processRelativeTime,
65 MM : processRelativeTime,
66 y : processRelativeTime,
67 yy : processRelativeTime
69 ordinalParse: /\d{1,2}\./,
72 dow : 1, // Monday is the first day of the week.
73 doy : 4 // The week that contains Jan 4th is the first week of the year.