cscg24-guacamole

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

jv.js (2384B)


      1//! moment.js locale configuration
      2//! locale : Javanese [jv]
      3//! author : Rony Lantip : https://github.com/lantip
      4//! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
      5
      6import moment from '../moment';
      7
      8export default moment.defineLocale('jv', {
      9    months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(
     10        '_'
     11    ),
     12    monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
     13    weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
     14    weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
     15    weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
     16    longDateFormat: {
     17        LT: 'HH.mm',
     18        LTS: 'HH.mm.ss',
     19        L: 'DD/MM/YYYY',
     20        LL: 'D MMMM YYYY',
     21        LLL: 'D MMMM YYYY [pukul] HH.mm',
     22        LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
     23    },
     24    meridiemParse: /enjing|siyang|sonten|ndalu/,
     25    meridiemHour: function (hour, meridiem) {
     26        if (hour === 12) {
     27            hour = 0;
     28        }
     29        if (meridiem === 'enjing') {
     30            return hour;
     31        } else if (meridiem === 'siyang') {
     32            return hour >= 11 ? hour : hour + 12;
     33        } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
     34            return hour + 12;
     35        }
     36    },
     37    meridiem: function (hours, minutes, isLower) {
     38        if (hours < 11) {
     39            return 'enjing';
     40        } else if (hours < 15) {
     41            return 'siyang';
     42        } else if (hours < 19) {
     43            return 'sonten';
     44        } else {
     45            return 'ndalu';
     46        }
     47    },
     48    calendar: {
     49        sameDay: '[Dinten puniko pukul] LT',
     50        nextDay: '[Mbenjang pukul] LT',
     51        nextWeek: 'dddd [pukul] LT',
     52        lastDay: '[Kala wingi pukul] LT',
     53        lastWeek: 'dddd [kepengker pukul] LT',
     54        sameElse: 'L',
     55    },
     56    relativeTime: {
     57        future: 'wonten ing %s',
     58        past: '%s ingkang kepengker',
     59        s: 'sawetawis detik',
     60        ss: '%d detik',
     61        m: 'setunggal menit',
     62        mm: '%d menit',
     63        h: 'setunggal jam',
     64        hh: '%d jam',
     65        d: 'sedinten',
     66        dd: '%d dinten',
     67        M: 'sewulan',
     68        MM: '%d wulan',
     69        y: 'setaun',
     70        yy: '%d taun',
     71    },
     72    week: {
     73        dow: 1, // Monday is the first day of the week.
     74        doy: 7, // The week that contains Jan 7th is the first week of the year.
     75    },
     76});