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