1 // moment.js locale configuration
2 // locale : Bahasa Malaysia (ms-MY)
3 // author : Weldan Jamili : https://github.com/weldan
6 if (typeof define === 'function' && define.amd) {
7 define(['moment'], factory); // AMD
8 } else if (typeof exports === 'object') {
9 module.exports = factory(require('../moment')); // Node
11 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
14 return moment.defineLocale('ms-my', {
15 months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
16 monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
17 weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
18 weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
19 weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
25 LLL : 'D MMMM YYYY [pukul] LT',
26 LLLL : 'dddd, D MMMM YYYY [pukul] LT'
28 meridiem : function (hours, minutes, isLower) {
31 } else if (hours < 15) {
33 } else if (hours < 19) {
40 sameDay : '[Hari ini pukul] LT',
41 nextDay : '[Esok pukul] LT',
42 nextWeek : 'dddd [pukul] LT',
43 lastDay : '[Kelmarin pukul] LT',
44 lastWeek : 'dddd [lepas pukul] LT',
49 past : '%s yang lepas',
63 dow : 1, // Monday is the first day of the week.
64 doy : 7 // The week that contains Jan 1st is the first week of the year.