cscg24-guacamole

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

dv.js (2464B)


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