Code Duplication    Length = 78-78 lines in 2 locations

rainloop/v/0.0.0/app/localization/moment/ms-my.js 1 location

@@ 6-83 (lines=78) @@
3
//! note : DEPRECATED, the correct one is [ms]
4
//! author : Weldan Jamili : https://github.com/weldan
5
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';
12
13
14
    var ms_my = moment.defineLocale('ms-my', {
15
        months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
16
        monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
17
        weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
18
        weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
19
        weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
20
        longDateFormat : {
21
            LT : 'HH.mm',
22
            LTS : 'HH.mm.ss',
23
            L : 'DD/MM/YYYY',
24
            LL : 'D MMMM YYYY',
25
            LLL : 'D MMMM YYYY [pukul] HH.mm',
26
            LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
27
        },
28
        meridiemParse: /pagi|tengahari|petang|malam/,
29
        meridiemHour: function (hour, meridiem) {
30
            if (hour === 12) {
31
                hour = 0;
32
            }
33
            if (meridiem === 'pagi') {
34
                return hour;
35
            } else if (meridiem === 'tengahari') {
36
                return hour >= 11 ? hour : hour + 12;
37
            } else if (meridiem === 'petang' || meridiem === 'malam') {
38
                return hour + 12;
39
            }
40
        },
41
        meridiem : function (hours, minutes, isLower) {
42
            if (hours < 11) {
43
                return 'pagi';
44
            } else if (hours < 15) {
45
                return 'tengahari';
46
            } else if (hours < 19) {
47
                return 'petang';
48
            } else {
49
                return 'malam';
50
            }
51
        },
52
        calendar : {
53
            sameDay : '[Hari ini pukul] LT',
54
            nextDay : '[Esok pukul] LT',
55
            nextWeek : 'dddd [pukul] LT',
56
            lastDay : '[Kelmarin pukul] LT',
57
            lastWeek : 'dddd [lepas pukul] LT',
58
            sameElse : 'L'
59
        },
60
        relativeTime : {
61
            future : 'dalam %s',
62
            past : '%s yang lepas',
63
            s : 'beberapa saat',
64
            m : 'seminit',
65
            mm : '%d minit',
66
            h : 'sejam',
67
            hh : '%d jam',
68
            d : 'sehari',
69
            dd : '%d hari',
70
            M : 'sebulan',
71
            MM : '%d bulan',
72
            y : 'setahun',
73
            yy : '%d tahun'
74
        },
75
        week : {
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.
78
        }
79
    });
80
81
    return ms_my;
82
83
}));

rainloop/v/0.0.0/app/localization/moment/id.js 1 location

@@ 6-83 (lines=78) @@
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 (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';
12
13
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('_'),
20
        longDateFormat : {
21
            LT : 'HH.mm',
22
            LTS : 'HH.mm.ss',
23
            L : 'DD/MM/YYYY',
24
            LL : 'D MMMM YYYY',
25
            LLL : 'D MMMM YYYY [pukul] HH.mm',
26
            LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
27
        },
28
        meridiemParse: /pagi|siang|sore|malam/,
29
        meridiemHour : function (hour, meridiem) {
30
            if (hour === 12) {
31
                hour = 0;
32
            }
33
            if (meridiem === 'pagi') {
34
                return hour;
35
            } else if (meridiem === 'siang') {
36
                return hour >= 11 ? hour : hour + 12;
37
            } else if (meridiem === 'sore' || meridiem === 'malam') {
38
                return hour + 12;
39
            }
40
        },
41
        meridiem : function (hours, minutes, isLower) {
42
            if (hours < 11) {
43
                return 'pagi';
44
            } else if (hours < 15) {
45
                return 'siang';
46
            } else if (hours < 19) {
47
                return 'sore';
48
            } else {
49
                return 'malam';
50
            }
51
        },
52
        calendar : {
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',
58
            sameElse : 'L'
59
        },
60
        relativeTime : {
61
            future : 'dalam %s',
62
            past : '%s yang lalu',
63
            s : 'beberapa detik',
64
            m : 'semenit',
65
            mm : '%d menit',
66
            h : 'sejam',
67
            hh : '%d jam',
68
            d : 'sehari',
69
            dd : '%d hari',
70
            M : 'sebulan',
71
            MM : '%d bulan',
72
            y : 'setahun',
73
            yy : '%d tahun'
74
        },
75
        week : {
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.
78
        }
79
    });
80
81
    return id;
82
83
}));