cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

de-ch.js (3094B)


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