cscg24-guacamole

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

he.js (3899B)


      1//! moment.js locale configuration
      2//! locale : Hebrew [he]
      3//! author : Tomer Cohen : https://github.com/tomer
      4//! author : Moshe Simantov : https://github.com/DevelopmentIL
      5//! author : Tal Ater : https://github.com/TalAter
      6
      7;(function (global, factory) {
      8   typeof exports === 'object' && typeof module !== 'undefined'
      9       && typeof require === 'function' ? factory(require('../moment')) :
     10   typeof define === 'function' && define.amd ? define(['../moment'], factory) :
     11   factory(global.moment)
     12}(this, (function (moment) { 'use strict';
     13
     14    //! moment.js locale configuration
     15
     16    var he = moment.defineLocale('he', {
     17        months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(
     18            '_'
     19        ),
     20        monthsShort:
     21            'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
     22        weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
     23        weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
     24        weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
     25        longDateFormat: {
     26            LT: 'HH:mm',
     27            LTS: 'HH:mm:ss',
     28            L: 'DD/MM/YYYY',
     29            LL: 'D [ב]MMMM YYYY',
     30            LLL: 'D [ב]MMMM YYYY HH:mm',
     31            LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
     32            l: 'D/M/YYYY',
     33            ll: 'D MMM YYYY',
     34            lll: 'D MMM YYYY HH:mm',
     35            llll: 'ddd, D MMM YYYY HH:mm',
     36        },
     37        calendar: {
     38            sameDay: '[היום ב־]LT',
     39            nextDay: '[מחר ב־]LT',
     40            nextWeek: 'dddd [בשעה] LT',
     41            lastDay: '[אתמול ב־]LT',
     42            lastWeek: '[ביום] dddd [האחרון בשעה] LT',
     43            sameElse: 'L',
     44        },
     45        relativeTime: {
     46            future: 'בעוד %s',
     47            past: 'לפני %s',
     48            s: 'מספר שניות',
     49            ss: '%d שניות',
     50            m: 'דקה',
     51            mm: '%d דקות',
     52            h: 'שעה',
     53            hh: function (number) {
     54                if (number === 2) {
     55                    return 'שעתיים';
     56                }
     57                return number + ' שעות';
     58            },
     59            d: 'יום',
     60            dd: function (number) {
     61                if (number === 2) {
     62                    return 'יומיים';
     63                }
     64                return number + ' ימים';
     65            },
     66            M: 'חודש',
     67            MM: function (number) {
     68                if (number === 2) {
     69                    return 'חודשיים';
     70                }
     71                return number + ' חודשים';
     72            },
     73            y: 'שנה',
     74            yy: function (number) {
     75                if (number === 2) {
     76                    return 'שנתיים';
     77                } else if (number % 10 === 0 && number !== 10) {
     78                    return number + ' שנה';
     79                }
     80                return number + ' שנים';
     81            },
     82        },
     83        meridiemParse:
     84            /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
     85        isPM: function (input) {
     86            return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
     87        },
     88        meridiem: function (hour, minute, isLower) {
     89            if (hour < 5) {
     90                return 'לפנות בוקר';
     91            } else if (hour < 10) {
     92                return 'בבוקר';
     93            } else if (hour < 12) {
     94                return isLower ? 'לפנה"צ' : 'לפני הצהריים';
     95            } else if (hour < 18) {
     96                return isLower ? 'אחה"צ' : 'אחרי הצהריים';
     97            } else {
     98                return 'בערב';
     99            }
    100        },
    101    });
    102
    103    return he;
    104
    105})));