1 //! moment.js locale configuration
2 //! locale : Malay [ms]
3 //! author : Weldan Jamili : https://github.com/weldan
5 ;(function (global
, factory
) {
6 typeof exports
=== 'object' && typeof module
!== 'undefined'
7 && typeof require
=== 'function' ? factory(require('../moment')) :
8 typeof define
=== 'function' && define
.amd
? define(['../moment'], factory
) :
10 }(this, (function (moment
) { 'use strict';
13 var ms
= moment
.defineLocale('ms', {
14 months
: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
15 monthsShort
: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
16 weekdays
: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
17 weekdaysShort
: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
18 weekdaysMin
: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
24 LLL
: 'D MMMM YYYY [pukul] HH.mm',
25 LLLL
: 'dddd, D MMMM YYYY [pukul] HH.mm'
27 meridiemParse
: /pagi|tengahari|petang|malam/,
28 meridiemHour: function (hour
, meridiem
) {
32 if (meridiem
=== 'pagi') {
34 } else if (meridiem
=== 'tengahari') {
35 return hour
>= 11 ? hour
: hour
+ 12;
36 } else if (meridiem
=== 'petang' || meridiem
=== 'malam') {
40 meridiem : function (hours
, minutes
, isLower
) {
43 } else if (hours
< 15) {
45 } else if (hours
< 19) {
52 sameDay
: '[Hari ini pukul] LT',
53 nextDay
: '[Esok pukul] LT',
54 nextWeek
: 'dddd [pukul] LT',
55 lastDay
: '[Kelmarin pukul] LT',
56 lastWeek
: 'dddd [lepas pukul] LT',
61 past
: '%s yang lepas',
75 dow
: 1, // Monday is the first day of the week.
76 doy
: 7 // The week that contains Jan 1st is the first week of the year.