PageRenderTime 30ms CodeModel.GetById 15ms app.highlight 11ms RepoModel.GetById 1ms app.codeStats 1ms

/node_modules/moment/src/locale/id.js

https://bitbucket.org/coleman333/smartsite
JavaScript | 74 lines | 68 code | 2 blank | 4 comment | 13 complexity | cbf6d556a04312a60353ac16ac53fa0a MD5 | raw file
 1//! moment.js locale configuration
 2//! locale : Indonesian [id]
 3//! author : Mohammad Satrio Utomo : https://github.com/tyok
 4//! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
 5
 6import moment from '../moment';
 7
 8export default moment.defineLocale('id', {
 9    months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
10    monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
11    weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
12    weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
13    weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
14    longDateFormat : {
15        LT : 'HH.mm',
16        LTS : 'HH.mm.ss',
17        L : 'DD/MM/YYYY',
18        LL : 'D MMMM YYYY',
19        LLL : 'D MMMM YYYY [pukul] HH.mm',
20        LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
21    },
22    meridiemParse: /pagi|siang|sore|malam/,
23    meridiemHour : function (hour, meridiem) {
24        if (hour === 12) {
25            hour = 0;
26        }
27        if (meridiem === 'pagi') {
28            return hour;
29        } else if (meridiem === 'siang') {
30            return hour >= 11 ? hour : hour + 12;
31        } else if (meridiem === 'sore' || meridiem === 'malam') {
32            return hour + 12;
33        }
34    },
35    meridiem : function (hours, minutes, isLower) {
36        if (hours < 11) {
37            return 'pagi';
38        } else if (hours < 15) {
39            return 'siang';
40        } else if (hours < 19) {
41            return 'sore';
42        } else {
43            return 'malam';
44        }
45    },
46    calendar : {
47        sameDay : '[Hari ini pukul] LT',
48        nextDay : '[Besok pukul] LT',
49        nextWeek : 'dddd [pukul] LT',
50        lastDay : '[Kemarin pukul] LT',
51        lastWeek : 'dddd [lalu pukul] LT',
52        sameElse : 'L'
53    },
54    relativeTime : {
55        future : 'dalam %s',
56        past : '%s yang lalu',
57        s : 'beberapa detik',
58        ss : '%d detik',
59        m : 'semenit',
60        mm : '%d menit',
61        h : 'sejam',
62        hh : '%d jam',
63        d : 'sehari',
64        dd : '%d hari',
65        M : 'sebulan',
66        MM : '%d bulan',
67        y : 'setahun',
68        yy : '%d tahun'
69    },
70    week : {
71        dow : 1, // Monday is the first day of the week.
72        doy : 7  // The week that contains Jan 1st is the first week of the year.
73    }
74});