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