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 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
16 function processRelativeTime(number, withoutSuffix, key, isFuture) {
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 'M': ['ein Monat', 'einem Monat'],
23 'MM': [number + ' Monate', number + ' Monaten'],
24 'y': ['ein Jahr', 'einem Jahr'],
25 'yy': [number + ' Jahre', number + ' Jahren']
27 return withoutSuffix ? format[key][0] : format[key][1];
30 return moment.defineLocale('de-at', {
31 months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
32 monthsShort : 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
33 weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
34 weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
35 weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
41 LLL : 'D. MMMM YYYY LT',
42 LLLL : 'dddd, D. MMMM YYYY LT'
45 sameDay: '[Heute um] LT [Uhr]',
47 nextDay: '[Morgen um] LT [Uhr]',
48 nextWeek: 'dddd [um] LT [Uhr]',
49 lastDay: '[Gestern um] LT [Uhr]',
50 lastWeek: '[letzten] dddd [um] LT [Uhr]'
55 s : 'ein paar Sekunden',
56 m : processRelativeTime,
58 h : processRelativeTime,
60 d : processRelativeTime,
61 dd : processRelativeTime,
62 M : processRelativeTime,
63 MM : processRelativeTime,
64 y : processRelativeTime,
65 yy : processRelativeTime
67 ordinalParse: /\d{1,2}\./,
70 dow : 1, // Monday is the first day of the week.
71 doy : 4 // The week that contains Jan 4th is the first week of the year.