1 //! moment.js locale configuration
2 //! locale : German (Switzerland) [de-ch]
3 //! author : sschueller : https://github.com/sschueller
5 ;(function (global, factory) {
6 typeof exports === 'object' && typeof module !== 'undefined'
7 && typeof require === 'function' ? factory(require('../moment')) :
8 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10 }(this, (function (moment) { 'use strict';
12 //! moment.js locale configuration
14 function processRelativeTime(number, withoutSuffix, key, isFuture) {
16 m: ['eine Minute', 'einer Minute'],
17 h: ['eine Stunde', 'einer Stunde'],
18 d: ['ein Tag', 'einem Tag'],
19 dd: [number + ' Tage', number + ' Tagen'],
20 M: ['ein Monat', 'einem Monat'],
21 MM: [number + ' Monate', number + ' Monaten'],
22 y: ['ein Jahr', 'einem Jahr'],
23 yy: [number + ' Jahre', number + ' Jahren'],
25 return withoutSuffix ? format[key][0] : format[key][1];
28 var deCh = moment.defineLocale('de-ch', {
29 months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
32 monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
35 monthsParseExact: true,
36 weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
39 weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
40 weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
41 weekdaysParseExact: true,
47 LLL: 'D. MMMM YYYY HH:mm',
48 LLLL: 'dddd, D. MMMM YYYY HH:mm',
51 sameDay: '[heute um] LT [Uhr]',
53 nextDay: '[morgen um] LT [Uhr]',
54 nextWeek: 'dddd [um] LT [Uhr]',
55 lastDay: '[gestern um] LT [Uhr]',
56 lastWeek: '[letzten] dddd [um] LT [Uhr]',
61 s: 'ein paar Sekunden',
63 m: processRelativeTime,
65 h: processRelativeTime,
67 d: processRelativeTime,
68 dd: processRelativeTime,
69 M: processRelativeTime,
70 MM: processRelativeTime,
71 y: processRelativeTime,
72 yy: processRelativeTime,
74 dayOfMonthOrdinalParse: /\d{1,2}\./,
77 dow: 1, // Monday is the first day of the week.
78 doy: 4, // The week that contains Jan 4th is the first week of the year.