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
6 ;(function (global, factory) {
7 typeof exports === 'object' && typeof module !== 'undefined'
8 && typeof require === 'function' ? factory(require('../moment')) :
9 typeof define === 'function' && define.amd ? define(['moment'], factory) :
10 factory(global.moment)
11 }(this, function (moment) { 'use strict';
14 var id = moment.defineLocale('id', {
15 months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
16 monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'),
17 weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
18 weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
19 weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
25 LLL : 'D MMMM YYYY [pukul] HH.mm',
26 LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
28 meridiemParse: /pagi|siang|sore|malam/,
29 meridiemHour : function (hour, meridiem) {
33 if (meridiem === 'pagi') {
35 } else if (meridiem === 'siang') {
36 return hour >= 11 ? hour : hour + 12;
37 } else if (meridiem === 'sore' || meridiem === 'malam') {
41 meridiem : function (hours, minutes, isLower) {
44 } else if (hours < 15) {
46 } else if (hours < 19) {
53 sameDay : '[Hari ini pukul] LT',
54 nextDay : '[Besok pukul] LT',
55 nextWeek : 'dddd [pukul] LT',
56 lastDay : '[Kemarin pukul] LT',
57 lastWeek : 'dddd [lalu pukul] LT',
62 past : '%s yang lalu',
76 dow : 1, // Monday is the first day of the week.
77 doy : 7 // The week that contains Jan 1st is the first week of the year.