2019-06-10 17:38:54 +02:00
|
|
|
//! moment.js locale configuration
|
2020-07-23 23:12:30 +02:00
|
|
|
//! locale : Javanese [jv]
|
|
|
|
//! author : Rony Lantip : https://github.com/lantip
|
|
|
|
//! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
|
2019-06-10 17:38:54 +02:00
|
|
|
|
|
|
|
;(function (global, factory) {
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
|
|
|
factory(global.moment)
|
|
|
|
}(this, (function (moment) { 'use strict';
|
|
|
|
|
2020-07-23 23:12:30 +02:00
|
|
|
//! moment.js locale configuration
|
2019-06-10 17:38:54 +02:00
|
|
|
|
|
|
|
var jv = moment.defineLocale('jv', {
|
2020-07-23 23:12:30 +02:00
|
|
|
months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(
|
|
|
|
'_'
|
|
|
|
),
|
|
|
|
monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
|
|
|
|
weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
|
|
|
|
weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
|
|
|
|
weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.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',
|
2019-06-10 17:38:54 +02:00
|
|
|
},
|
|
|
|
meridiemParse: /enjing|siyang|sonten|ndalu/,
|
2020-07-23 23:12:30 +02:00
|
|
|
meridiemHour: function (hour, meridiem) {
|
2019-06-10 17:38:54 +02:00
|
|
|
if (hour === 12) {
|
|
|
|
hour = 0;
|
|
|
|
}
|
|
|
|
if (meridiem === 'enjing') {
|
|
|
|
return hour;
|
|
|
|
} else if (meridiem === 'siyang') {
|
|
|
|
return hour >= 11 ? hour : hour + 12;
|
|
|
|
} else if (meridiem === 'sonten' || meridiem === 'ndalu') {
|
|
|
|
return hour + 12;
|
|
|
|
}
|
|
|
|
},
|
2020-07-23 23:12:30 +02:00
|
|
|
meridiem: function (hours, minutes, isLower) {
|
2019-06-10 17:38:54 +02:00
|
|
|
if (hours < 11) {
|
|
|
|
return 'enjing';
|
|
|
|
} else if (hours < 15) {
|
|
|
|
return 'siyang';
|
|
|
|
} else if (hours < 19) {
|
|
|
|
return 'sonten';
|
|
|
|
} else {
|
|
|
|
return 'ndalu';
|
|
|
|
}
|
|
|
|
},
|
2020-07-23 23:12:30 +02:00
|
|
|
calendar: {
|
|
|
|
sameDay: '[Dinten puniko pukul] LT',
|
|
|
|
nextDay: '[Mbenjang pukul] LT',
|
|
|
|
nextWeek: 'dddd [pukul] LT',
|
|
|
|
lastDay: '[Kala wingi pukul] LT',
|
|
|
|
lastWeek: 'dddd [kepengker pukul] LT',
|
|
|
|
sameElse: 'L',
|
2019-06-10 17:38:54 +02:00
|
|
|
},
|
2020-07-23 23:12:30 +02:00
|
|
|
relativeTime: {
|
|
|
|
future: 'wonten ing %s',
|
|
|
|
past: '%s ingkang kepengker',
|
|
|
|
s: 'sawetawis detik',
|
|
|
|
ss: '%d detik',
|
|
|
|
m: 'setunggal menit',
|
|
|
|
mm: '%d menit',
|
|
|
|
h: 'setunggal jam',
|
|
|
|
hh: '%d jam',
|
|
|
|
d: 'sedinten',
|
|
|
|
dd: '%d dinten',
|
|
|
|
M: 'sewulan',
|
|
|
|
MM: '%d wulan',
|
|
|
|
y: 'setaun',
|
|
|
|
yy: '%d taun',
|
|
|
|
},
|
|
|
|
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.
|
2019-06-10 17:38:54 +02:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
return jv;
|
|
|
|
|
|
|
|
})));
|