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