ms-my.js (2330B)
1//! moment.js locale configuration 2//! locale : Malay [ms-my] 3//! note : DEPRECATED, the correct one is [ms] 4//! author : Weldan Jamili : https://github.com/weldan 5 6import moment from '../moment'; 7 8export default moment.defineLocale('ms-my', { 9 months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( 10 '_' 11 ), 12 monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), 13 weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), 14 weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), 15 weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.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: /pagi|tengahari|petang|malam/, 25 meridiemHour: function (hour, meridiem) { 26 if (hour === 12) { 27 hour = 0; 28 } 29 if (meridiem === 'pagi') { 30 return hour; 31 } else if (meridiem === 'tengahari') { 32 return hour >= 11 ? hour : hour + 12; 33 } else if (meridiem === 'petang' || meridiem === 'malam') { 34 return hour + 12; 35 } 36 }, 37 meridiem: function (hours, minutes, isLower) { 38 if (hours < 11) { 39 return 'pagi'; 40 } else if (hours < 15) { 41 return 'tengahari'; 42 } else if (hours < 19) { 43 return 'petang'; 44 } else { 45 return 'malam'; 46 } 47 }, 48 calendar: { 49 sameDay: '[Hari ini pukul] LT', 50 nextDay: '[Esok pukul] LT', 51 nextWeek: 'dddd [pukul] LT', 52 lastDay: '[Kelmarin pukul] LT', 53 lastWeek: 'dddd [lepas pukul] LT', 54 sameElse: 'L', 55 }, 56 relativeTime: { 57 future: 'dalam %s', 58 past: '%s yang lepas', 59 s: 'beberapa saat', 60 ss: '%d saat', 61 m: 'seminit', 62 mm: '%d minit', 63 h: 'sejam', 64 hh: '%d jam', 65 d: 'sehari', 66 dd: '%d hari', 67 M: 'sebulan', 68 MM: '%d bulan', 69 y: 'setahun', 70 yy: '%d tahun', 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});