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