Update Moment.js from 2.7.0 to 2.8.1
[lhc/web/wiklou.git] / resources / lib / moment / lang / id.js
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
5
6 (function (factory) {
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
11 } else {
12 factory(window.moment); // Browser global
13 }
14 }(function (moment) {
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("_"),
21 longDateFormat : {
22 LT : "HH.mm",
23 L : "DD/MM/YYYY",
24 LL : "D MMMM YYYY",
25 LLL : "D MMMM YYYY [pukul] LT",
26 LLLL : "dddd, D MMMM YYYY [pukul] LT"
27 },
28 meridiem : function (hours, minutes, isLower) {
29 if (hours < 11) {
30 return 'pagi';
31 } else if (hours < 15) {
32 return 'siang';
33 } else if (hours < 19) {
34 return 'sore';
35 } else {
36 return 'malam';
37 }
38 },
39 calendar : {
40 sameDay : '[Hari ini pukul] LT',
41 nextDay : '[Besok pukul] LT',
42 nextWeek : 'dddd [pukul] LT',
43 lastDay : '[Kemarin pukul] LT',
44 lastWeek : 'dddd [lalu pukul] LT',
45 sameElse : 'L'
46 },
47 relativeTime : {
48 future : "dalam %s",
49 past : "%s yang lalu",
50 s : "beberapa detik",
51 m : "semenit",
52 mm : "%d menit",
53 h : "sejam",
54 hh : "%d jam",
55 d : "sehari",
56 dd : "%d hari",
57 M : "sebulan",
58 MM : "%d bulan",
59 y : "setahun",
60 yy : "%d tahun"
61 },
62 week : {
63 dow : 1, // Monday is the first day of the week.
64 doy : 7 // The week that contains Jan 1st is the first week of the year.
65 }
66 });
67 }));