cscg24-guacamole

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

ne.js (4831B)


      1//! moment.js locale configuration
      2//! locale : Nepalese [ne]
      3//! author : suvash : https://github.com/suvash
      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 symbolMap = {
     15            1: '१',
     16            2: '२',
     17            3: '३',
     18            4: '४',
     19            5: '५',
     20            6: '६',
     21            7: '७',
     22            8: '८',
     23            9: '९',
     24            0: '०',
     25        },
     26        numberMap = {
     27            '१': '1',
     28            '२': '2',
     29            '३': '3',
     30            '४': '4',
     31            '५': '5',
     32            '६': '6',
     33            '७': '7',
     34            '८': '8',
     35            '९': '9',
     36            '०': '0',
     37        };
     38
     39    var ne = moment.defineLocale('ne', {
     40        months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(
     41            '_'
     42        ),
     43        monthsShort:
     44            'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(
     45                '_'
     46            ),
     47        monthsParseExact: true,
     48        weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(
     49            '_'
     50        ),
     51        weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
     52        weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
     53        weekdaysParseExact: true,
     54        longDateFormat: {
     55            LT: 'Aको h:mm बजे',
     56            LTS: 'Aको h:mm:ss बजे',
     57            L: 'DD/MM/YYYY',
     58            LL: 'D MMMM YYYY',
     59            LLL: 'D MMMM YYYY, Aको h:mm बजे',
     60            LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',
     61        },
     62        preparse: function (string) {
     63            return string.replace(/[१२३४५६७८९०]/g, function (match) {
     64                return numberMap[match];
     65            });
     66        },
     67        postformat: function (string) {
     68            return string.replace(/\d/g, function (match) {
     69                return symbolMap[match];
     70            });
     71        },
     72        meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
     73        meridiemHour: function (hour, meridiem) {
     74            if (hour === 12) {
     75                hour = 0;
     76            }
     77            if (meridiem === 'राति') {
     78                return hour < 4 ? hour : hour + 12;
     79            } else if (meridiem === 'बिहान') {
     80                return hour;
     81            } else if (meridiem === 'दिउँसो') {
     82                return hour >= 10 ? hour : hour + 12;
     83            } else if (meridiem === 'साँझ') {
     84                return hour + 12;
     85            }
     86        },
     87        meridiem: function (hour, minute, isLower) {
     88            if (hour < 3) {
     89                return 'राति';
     90            } else if (hour < 12) {
     91                return 'बिहान';
     92            } else if (hour < 16) {
     93                return 'दिउँसो';
     94            } else if (hour < 20) {
     95                return 'साँझ';
     96            } else {
     97                return 'राति';
     98            }
     99        },
    100        calendar: {
    101            sameDay: '[आज] LT',
    102            nextDay: '[भोलि] LT',
    103            nextWeek: '[आउँदो] dddd[,] LT',
    104            lastDay: '[हिजो] LT',
    105            lastWeek: '[गएको] dddd[,] LT',
    106            sameElse: 'L',
    107        },
    108        relativeTime: {
    109            future: '%sमा',
    110            past: '%s अगाडि',
    111            s: 'केही क्षण',
    112            ss: '%d सेकेण्ड',
    113            m: 'एक मिनेट',
    114            mm: '%d मिनेट',
    115            h: 'एक घण्टा',
    116            hh: '%d घण्टा',
    117            d: 'एक दिन',
    118            dd: '%d दिन',
    119            M: 'एक महिना',
    120            MM: '%d महिना',
    121            y: 'एक बर्ष',
    122            yy: '%d बर्ष',
    123        },
    124        week: {
    125            dow: 0, // Sunday is the first day of the week.
    126            doy: 6, // The week that contains Jan 6th is the first week of the year.
    127        },
    128    });
    129
    130    return ne;
    131
    132})));