cscg24-guacamole

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

dv.js (3140B)


      1//! moment.js locale configuration
      2//! locale : Maldivian [dv]
      3//! author : Jawish Hameed : https://github.com/jawish
      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 months = [
     15            'ޖެނުއަރީ',
     16            'ފެބްރުއަރީ',
     17            'މާރިޗު',
     18            'އޭޕްރީލު',
     19            'މޭ',
     20            'ޖޫން',
     21            'ޖުލައި',
     22            'އޯގަސްޓު',
     23            'ސެޕްޓެމްބަރު',
     24            'އޮކްޓޯބަރު',
     25            'ނޮވެމްބަރު',
     26            'ޑިސެމްބަރު',
     27        ],
     28        weekdays = [
     29            'އާދިއްތަ',
     30            'ހޯމަ',
     31            'އަންގާރަ',
     32            'ބުދަ',
     33            'ބުރާސްފަތި',
     34            'ހުކުރު',
     35            'ހޮނިހިރު',
     36        ];
     37
     38    var dv = moment.defineLocale('dv', {
     39        months: months,
     40        monthsShort: months,
     41        weekdays: weekdays,
     42        weekdaysShort: weekdays,
     43        weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
     44        longDateFormat: {
     45            LT: 'HH:mm',
     46            LTS: 'HH:mm:ss',
     47            L: 'D/M/YYYY',
     48            LL: 'D MMMM YYYY',
     49            LLL: 'D MMMM YYYY HH:mm',
     50            LLLL: 'dddd D MMMM YYYY HH:mm',
     51        },
     52        meridiemParse: /މކ|މފ/,
     53        isPM: function (input) {
     54            return 'މފ' === input;
     55        },
     56        meridiem: function (hour, minute, isLower) {
     57            if (hour < 12) {
     58                return 'މކ';
     59            } else {
     60                return 'މފ';
     61            }
     62        },
     63        calendar: {
     64            sameDay: '[މިއަދު] LT',
     65            nextDay: '[މާދަމާ] LT',
     66            nextWeek: 'dddd LT',
     67            lastDay: '[އިއްޔެ] LT',
     68            lastWeek: '[ފާއިތުވި] dddd LT',
     69            sameElse: 'L',
     70        },
     71        relativeTime: {
     72            future: 'ތެރޭގައި %s',
     73            past: 'ކުރިން %s',
     74            s: 'ސިކުންތުކޮޅެއް',
     75            ss: 'd% ސިކުންތު',
     76            m: 'މިނިޓެއް',
     77            mm: 'މިނިޓު %d',
     78            h: 'ގަޑިއިރެއް',
     79            hh: 'ގަޑިއިރު %d',
     80            d: 'ދުވަހެއް',
     81            dd: 'ދުވަސް %d',
     82            M: 'މަހެއް',
     83            MM: 'މަސް %d',
     84            y: 'އަހަރެއް',
     85            yy: 'އަހަރު %d',
     86        },
     87        preparse: function (string) {
     88            return string.replace(/،/g, ',');
     89        },
     90        postformat: function (string) {
     91            return string.replace(/,/g, '،');
     92        },
     93        week: {
     94            dow: 7, // Sunday is the first day of the week.
     95            doy: 12, // The week that contains Jan 12th is the first week of the year.
     96        },
     97    });
     98
     99    return dv;
    100
    101})));