cscg24-guacamole

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

de-at.js (2635B)


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