cscg24-guacamole

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

fy.js (2891B)


      1//! moment.js locale configuration
      2//! locale : Frisian [fy]
      3//! author : Robin van der Vliet : https://github.com/robin0van0der0v
      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    var monthsShortWithDots =
     15            'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
     16        monthsShortWithoutDots =
     17            'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
     18
     19    var fy = moment.defineLocale('fy', {
     20        months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
     21            '_'
     22        ),
     23        monthsShort: function (m, format) {
     24            if (!m) {
     25                return monthsShortWithDots;
     26            } else if (/-MMM-/.test(format)) {
     27                return monthsShortWithoutDots[m.month()];
     28            } else {
     29                return monthsShortWithDots[m.month()];
     30            }
     31        },
     32        monthsParseExact: true,
     33        weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
     34            '_'
     35        ),
     36        weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
     37        weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.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: '[hjoed om] LT',
     49            nextDay: '[moarn om] LT',
     50            nextWeek: 'dddd [om] LT',
     51            lastDay: '[juster om] LT',
     52            lastWeek: '[ôfrûne] dddd [om] LT',
     53            sameElse: 'L',
     54        },
     55        relativeTime: {
     56            future: 'oer %s',
     57            past: '%s lyn',
     58            s: 'in pear sekonden',
     59            ss: '%d sekonden',
     60            m: 'ien minút',
     61            mm: '%d minuten',
     62            h: 'ien oere',
     63            hh: '%d oeren',
     64            d: 'ien dei',
     65            dd: '%d dagen',
     66            M: 'ien moanne',
     67            MM: '%d moannen',
     68            y: 'ien jier',
     69            yy: '%d jierren',
     70        },
     71        dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
     72        ordinal: function (number) {
     73            return (
     74                number +
     75                (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
     76            );
     77        },
     78        week: {
     79            dow: 1, // Monday is the first day of the week.
     80            doy: 4, // The week that contains Jan 4th is the first week of the year.
     81        },
     82    });
     83
     84    return fy;
     85
     86})));