2016-02-05 15:42:48 -05:00
|
|
|
//! moment.js locale configuration
|
2020-11-10 20:34:26 -05:00
|
|
|
//! locale : Malay [ms]
|
|
|
|
//! author : Weldan Jamili : https://github.com/weldan
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
|
|
;(function (global, factory) {
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
2017-04-20 00:24:20 -04:00
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
2016-02-05 15:42:48 -05:00
|
|
|
factory(global.moment)
|
2017-04-20 00:24:20 -04:00
|
|
|
}(this, (function (moment) { 'use strict';
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2020-11-10 20:34:26 -05:00
|
|
|
//! moment.js locale configuration
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
var ms = moment.defineLocale('ms', {
|
2020-11-10 20:34:26 -05:00
|
|
|
months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
|
|
|
|
'_'
|
|
|
|
),
|
|
|
|
monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
|
|
|
|
weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
|
|
|
|
weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
|
|
|
|
weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
|
|
|
|
longDateFormat: {
|
|
|
|
LT: 'HH.mm',
|
|
|
|
LTS: 'HH.mm.ss',
|
|
|
|
L: 'DD/MM/YYYY',
|
|
|
|
LL: 'D MMMM YYYY',
|
|
|
|
LLL: 'D MMMM YYYY [pukul] HH.mm',
|
|
|
|
LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
|
2018-04-26 03:15:53 -04:00
|
|
|
},
|
|
|
|
meridiemParse: /pagi|tengahari|petang|malam/,
|
|
|
|
meridiemHour: function (hour, meridiem) {
|
|
|
|
if (hour === 12) {
|
|
|
|
hour = 0;
|
|
|
|
}
|
|
|
|
if (meridiem === 'pagi') {
|
|
|
|
return hour;
|
|
|
|
} else if (meridiem === 'tengahari') {
|
|
|
|
return hour >= 11 ? hour : hour + 12;
|
|
|
|
} else if (meridiem === 'petang' || meridiem === 'malam') {
|
|
|
|
return hour + 12;
|
|
|
|
}
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
meridiem: function (hours, minutes, isLower) {
|
2018-04-26 03:15:53 -04:00
|
|
|
if (hours < 11) {
|
|
|
|
return 'pagi';
|
|
|
|
} else if (hours < 15) {
|
|
|
|
return 'tengahari';
|
|
|
|
} else if (hours < 19) {
|
|
|
|
return 'petang';
|
|
|
|
} else {
|
|
|
|
return 'malam';
|
|
|
|
}
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
calendar: {
|
|
|
|
sameDay: '[Hari ini pukul] LT',
|
|
|
|
nextDay: '[Esok pukul] LT',
|
|
|
|
nextWeek: 'dddd [pukul] LT',
|
|
|
|
lastDay: '[Kelmarin pukul] LT',
|
|
|
|
lastWeek: 'dddd [lepas pukul] LT',
|
|
|
|
sameElse: 'L',
|
2018-04-26 03:15:53 -04:00
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
relativeTime: {
|
|
|
|
future: 'dalam %s',
|
|
|
|
past: '%s yang lepas',
|
|
|
|
s: 'beberapa saat',
|
|
|
|
ss: '%d saat',
|
|
|
|
m: 'seminit',
|
|
|
|
mm: '%d minit',
|
|
|
|
h: 'sejam',
|
|
|
|
hh: '%d jam',
|
|
|
|
d: 'sehari',
|
|
|
|
dd: '%d hari',
|
|
|
|
M: 'sebulan',
|
|
|
|
MM: '%d bulan',
|
|
|
|
y: 'setahun',
|
|
|
|
yy: '%d tahun',
|
|
|
|
},
|
|
|
|
week: {
|
|
|
|
dow: 1, // Monday is the first day of the week.
|
|
|
|
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
2018-04-26 03:15:53 -04:00
|
|
|
},
|
|
|
|
});
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
return ms;
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
})));
|