45de05eecc29f995403b6ba4f576df4c95a90879
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';
13 // based on: https://www.bk.admin.ch/dokumentation/sprachen/04915/05016/index.html?lang=de#
15 function processRelativeTime(number
, withoutSuffix
, key
, isFuture
) {
17 'm': ['eine Minute', 'einer Minute'],
18 'h': ['eine Stunde', 'einer Stunde'],
19 'd': ['ein Tag', 'einem Tag'],
20 'dd': [number
+ ' Tage', number
+ ' Tagen'],
21 'M': ['ein Monat', 'einem Monat'],
22 'MM': [number
+ ' Monate', number
+ ' Monaten'],
23 'y': ['ein Jahr', 'einem Jahr'],
24 'yy': [number
+ ' Jahre', number
+ ' Jahren']
26 return withoutSuffix
? format
[key
][0] : format
[key
][1];
29 var deCh
= moment
.defineLocale('de-ch', {
30 months
: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
31 monthsShort
: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
32 monthsParseExact
: true,
33 weekdays
: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
34 weekdaysShort
: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
35 weekdaysMin
: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
36 weekdaysParseExact
: true,
42 LLL
: 'D. MMMM YYYY HH.mm',
43 LLLL
: 'dddd, D. MMMM YYYY HH.mm'
46 sameDay
: '[heute um] LT [Uhr]',
48 nextDay
: '[morgen um] LT [Uhr]',
49 nextWeek
: 'dddd [um] LT [Uhr]',
50 lastDay
: '[gestern um] LT [Uhr]',
51 lastWeek
: '[letzten] dddd [um] LT [Uhr]'
56 s
: 'ein paar Sekunden',
57 m
: processRelativeTime
,
59 h
: processRelativeTime
,
61 d
: processRelativeTime
,
62 dd
: processRelativeTime
,
63 M
: processRelativeTime
,
64 MM
: processRelativeTime
,
65 y
: processRelativeTime
,
66 yy
: processRelativeTime
68 dayOfMonthOrdinalParse
: /\d{1,2}\./,
71 dow
: 1, // Monday is the first day of the week.
72 doy
: 4 // The week that contains Jan 4th is the first week of the year.