2016-02-05 15:42:48 -05:00
|
|
|
//! moment.js locale configuration
|
2020-11-10 20:34:26 -05:00
|
|
|
//! locale : Indonesian [id]
|
|
|
|
//! author : Mohammad Satrio Utomo : https://github.com/tyok
|
|
|
|
//! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
|
2013-06-07 04:03:09 -04:00
|
|
|
|
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 id = moment.defineLocale('id', {
|
2020-11-10 20:34:26 -05:00
|
|
|
months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(
|
|
|
|
'_'
|
|
|
|
),
|
|
|
|
monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
|
|
|
|
weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
|
|
|
|
weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
|
|
|
|
weekdaysMin: 'Mg_Sn_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|siang|sore|malam/,
|
2020-11-10 20:34:26 -05:00
|
|
|
meridiemHour: function (hour, meridiem) {
|
2018-04-26 03:15:53 -04:00
|
|
|
if (hour === 12) {
|
|
|
|
hour = 0;
|
|
|
|
}
|
|
|
|
if (meridiem === 'pagi') {
|
|
|
|
return hour;
|
|
|
|
} else if (meridiem === 'siang') {
|
|
|
|
return hour >= 11 ? hour : hour + 12;
|
|
|
|
} else if (meridiem === 'sore' || 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 'siang';
|
|
|
|
} else if (hours < 19) {
|
|
|
|
return 'sore';
|
|
|
|
} else {
|
|
|
|
return 'malam';
|
|
|
|
}
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
calendar: {
|
|
|
|
sameDay: '[Hari ini pukul] LT',
|
|
|
|
nextDay: '[Besok pukul] LT',
|
|
|
|
nextWeek: 'dddd [pukul] LT',
|
|
|
|
lastDay: '[Kemarin pukul] LT',
|
|
|
|
lastWeek: 'dddd [lalu 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 lalu',
|
|
|
|
s: 'beberapa detik',
|
|
|
|
ss: '%d detik',
|
|
|
|
m: 'semenit',
|
|
|
|
mm: '%d menit',
|
|
|
|
h: 'sejam',
|
|
|
|
hh: '%d jam',
|
|
|
|
d: 'sehari',
|
|
|
|
dd: '%d hari',
|
|
|
|
M: 'sebulan',
|
|
|
|
MM: '%d bulan',
|
|
|
|
y: 'setahun',
|
|
|
|
yy: '%d tahun',
|
|
|
|
},
|
|
|
|
week: {
|
|
|
|
dow: 0, // Sunday is the first day of the week.
|
|
|
|
doy: 6, // The week that contains Jan 6th 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 id;
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
})));
|