jv.js (3004B)
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 6;(function (global, factory) { 7 typeof exports === 'object' && typeof module !== 'undefined' 8 && typeof require === 'function' ? factory(require('../moment')) : 9 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 10 factory(global.moment) 11}(this, (function (moment) { 'use strict'; 12 13 //! moment.js locale configuration 14 15 var jv = moment.defineLocale('jv', { 16 months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split( 17 '_' 18 ), 19 monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'), 20 weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'), 21 weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'), 22 weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'), 23 longDateFormat: { 24 LT: 'HH.mm', 25 LTS: 'HH.mm.ss', 26 L: 'DD/MM/YYYY', 27 LL: 'D MMMM YYYY', 28 LLL: 'D MMMM YYYY [pukul] HH.mm', 29 LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', 30 }, 31 meridiemParse: /enjing|siyang|sonten|ndalu/, 32 meridiemHour: function (hour, meridiem) { 33 if (hour === 12) { 34 hour = 0; 35 } 36 if (meridiem === 'enjing') { 37 return hour; 38 } else if (meridiem === 'siyang') { 39 return hour >= 11 ? hour : hour + 12; 40 } else if (meridiem === 'sonten' || meridiem === 'ndalu') { 41 return hour + 12; 42 } 43 }, 44 meridiem: function (hours, minutes, isLower) { 45 if (hours < 11) { 46 return 'enjing'; 47 } else if (hours < 15) { 48 return 'siyang'; 49 } else if (hours < 19) { 50 return 'sonten'; 51 } else { 52 return 'ndalu'; 53 } 54 }, 55 calendar: { 56 sameDay: '[Dinten puniko pukul] LT', 57 nextDay: '[Mbenjang pukul] LT', 58 nextWeek: 'dddd [pukul] LT', 59 lastDay: '[Kala wingi pukul] LT', 60 lastWeek: 'dddd [kepengker pukul] LT', 61 sameElse: 'L', 62 }, 63 relativeTime: { 64 future: 'wonten ing %s', 65 past: '%s ingkang kepengker', 66 s: 'sawetawis detik', 67 ss: '%d detik', 68 m: 'setunggal menit', 69 mm: '%d menit', 70 h: 'setunggal jam', 71 hh: '%d jam', 72 d: 'sedinten', 73 dd: '%d dinten', 74 M: 'sewulan', 75 MM: '%d wulan', 76 y: 'setaun', 77 yy: '%d taun', 78 }, 79 week: { 80 dow: 1, // Monday is the first day of the week. 81 doy: 7, // The week that contains Jan 7th is the first week of the year. 82 }, 83 }); 84 85 return jv; 86 87})));