PageRenderTime 28ms CodeModel.GetById 18ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/node_modules/moment/src/locale/de-at.js

https://bitbucket.org/coleman333/smartsite
JavaScript | 70 lines | 61 code | 3 blank | 6 comment | 0 complexity | b98a0fb8b762d8096f3c9da45e888e1a MD5 | raw file
 1//! moment.js locale configuration
 2//! locale : German (Austria) [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
 7
 8import moment from '../moment';
 9
10function processRelativeTime(number, withoutSuffix, key, isFuture) {
11    var format = {
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']
20    };
21    return withoutSuffix ? format[key][0] : format[key][1];
22}
23
24export 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._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._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,
32    longDateFormat : {
33        LT: 'HH:mm',
34        LTS: 'HH:mm:ss',
35        L : 'DD.MM.YYYY',
36        LL : 'D. MMMM YYYY',
37        LLL : 'D. MMMM YYYY HH:mm',
38        LLLL : 'dddd, D. MMMM YYYY HH:mm'
39    },
40    calendar : {
41        sameDay: '[heute um] LT [Uhr]',
42        sameElse: 'L',
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]'
47    },
48    relativeTime : {
49        future : 'in %s',
50        past : 'vor %s',
51        s : 'ein paar Sekunden',
52        ss : '%d Sekunden',
53        m : processRelativeTime,
54        mm : '%d Minuten',
55        h : processRelativeTime,
56        hh : '%d Stunden',
57        d : processRelativeTime,
58        dd : processRelativeTime,
59        M : processRelativeTime,
60        MM : processRelativeTime,
61        y : processRelativeTime,
62        yy : processRelativeTime
63    },
64    dayOfMonthOrdinalParse: /\d{1,2}\./,
65    ordinal : '%d.',
66    week : {
67        dow : 1, // Monday is the first day of the week.
68        doy : 4  // The week that contains Jan 4th is the first week of the year.
69    }
70});