all repos — gears @ 375297ad9903d8d46a4e7185696f45a17718b011

lightweight world clock webapp with jquery, moment-timezone, and fuse.js

node_modules/moment/src/locale/ku.js (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
//! moment.js locale configuration
//! locale : Kurdish [ku]
//! author : Shahram Mebashar : https://github.com/ShahramMebashar

import moment from '../moment';

var symbolMap = {
    '1': '١',
    '2': '٢',
    '3': '٣',
    '4': '٤',
    '5': '٥',
    '6': '٦',
    '7': '٧',
    '8': '٨',
    '9': '٩',
    '0': '٠'
}, numberMap = {
    '١': '1',
    '٢': '2',
    '٣': '3',
    '٤': '4',
    '٥': '5',
    '٦': '6',
    '٧': '7',
    '٨': '8',
    '٩': '9',
    '٠': '0'
},
months = [
    'کانونی دووەم',
    'شوبات',
    'ئازار',
    'نیسان',
    'ئایار',
    'حوزەیران',
    'تەمموز',
    'ئاب',
    'ئەیلوول',
    'تشرینی یەكەم',
    'تشرینی دووەم',
    'كانونی یەکەم'
];


export default moment.defineLocale('ku', {
    months : months,
    monthsShort : months,
    weekdays : 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split('_'),
    weekdaysShort : 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split('_'),
    weekdaysMin : 'ی_د_س_چ_پ_ه_ش'.split('_'),
    weekdaysParseExact : true,
    longDateFormat : {
        LT : 'HH:mm',
        LTS : 'HH:mm:ss',
        L : 'DD/MM/YYYY',
        LL : 'D MMMM YYYY',
        LLL : 'D MMMM YYYY HH:mm',
        LLLL : 'dddd, D MMMM YYYY HH:mm'
    },
    meridiemParse: /ئێواره‌|به‌یانی/,
    isPM: function (input) {
        return /ئێواره‌/.test(input);
    },
    meridiem : function (hour, minute, isLower) {
        if (hour < 12) {
            return 'به‌یانی';
        } else {
            return 'ئێواره‌';
        }
    },
    calendar : {
        sameDay : '[ئه‌مرۆ كاتژمێر] LT',
        nextDay : '[به‌یانی كاتژمێر] LT',
        nextWeek : 'dddd [كاتژمێر] LT',
        lastDay : '[دوێنێ كاتژمێر] LT',
        lastWeek : 'dddd [كاتژمێر] LT',
        sameElse : 'L'
    },
    relativeTime : {
        future : 'له‌ %s',
        past : '%s',
        s : 'چه‌ند چركه‌یه‌ك',
        ss : 'چركه‌ %d',
        m : 'یه‌ك خوله‌ك',
        mm : '%d خوله‌ك',
        h : 'یه‌ك كاتژمێر',
        hh : '%d كاتژمێر',
        d : 'یه‌ك ڕۆژ',
        dd : '%d ڕۆژ',
        M : 'یه‌ك مانگ',
        MM : '%d مانگ',
        y : 'یه‌ك ساڵ',
        yy : '%d ساڵ'
    },
    preparse: function (string) {
        return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
            return numberMap[match];
        }).replace(/،/g, ',');
    },
    postformat: function (string) {
        return string.replace(/\d/g, function (match) {
            return symbolMap[match];
        }).replace(/,/g, '،');
    },
    week : {
        dow : 6, // Saturday is the first day of the week.
        doy : 12 // The week that contains Jan 12th is the first week of the year.
    }
});