1 // moment.js locale configuration
2 // locale : Bahasa Indonesia (id)
3 // author : Mohammad Satrio Utomo : https://github.com/tyok
4 // reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
7 if (typeof define
=== 'function' && define
.amd
) {
8 define(['moment'], factory
); // AMD
9 } else if (typeof exports
=== 'object') {
10 module
.exports
= factory(require('../moment')); // Node
12 factory((typeof global
!== 'undefined' ? global
: this).moment
); // node or other global
15 return moment
.defineLocale('id', {
16 months
: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
17 monthsShort
: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'),
18 weekdays
: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
19 weekdaysShort
: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
20 weekdaysMin
: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
26 LLL
: 'D MMMM YYYY [pukul] LT',
27 LLLL
: 'dddd, D MMMM YYYY [pukul] LT'
29 meridiem : function (hours
, minutes
, isLower
) {
32 } else if (hours
< 15) {
34 } else if (hours
< 19) {
41 sameDay
: '[Hari ini pukul] LT',
42 nextDay
: '[Besok pukul] LT',
43 nextWeek
: 'dddd [pukul] LT',
44 lastDay
: '[Kemarin pukul] LT',
45 lastWeek
: 'dddd [lalu pukul] LT',
50 past
: '%s yang lalu',
64 dow
: 1, // Monday is the first day of the week.
65 doy
: 7 // The week that contains Jan 1st is the first week of the year.