Debian Codegraph @

resources/lib/moment/locale/ku.js

raw symbols SCIP
1 //! moment.js locale configuration
2 //! locale : Kurdish [ku]
3 //! author : Shahram Mebashar : https://github.com/ShahramMebashar
4
5 ;(function (global, factory) {
6 typeof exports === 'object' && typeof module !== 'undefined'
7 && typeof require === 'function' ? factory(require('../moment')) :
8 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9 factory(global.moment)
10 }(this, (function (moment) { 'use strict';
11
12 //! moment.js locale configuration
13
14 var symbolMap = {
15 '1': '١',
16 '2': '٢',
17 '3': '٣',
18 '4': '٤',
19 '5': '٥',
20 '6': '٦',
21 '7': '٧',
22 '8': '٨',
23 '9': '٩',
24 '0': '٠',
25 },
26 numberMap = {
27 '١': '1',
28 '٢': '2',
29 '٣': '3',
30 '٤': '4',
31 '٥': '5',
32 '٦': '6',
33 '٧': '7',
34 '٨': '8',
35 '٩': '9',
36 '٠': '0',
37 },
38 months = [
39 'کانونی دووەم',
40 'شوبات',
41 'ئازار',
42 'نیسان',
43 'ئایار',
44 'حوزەیران',
45 'تەمموز',
46 'ئاب',
47 'ئەیلوول',
48 'تشرینی یەكەم',
49 'تشرینی دووەم',
50 'كانونی یەکەم',
51 ];
52
53 var ku = moment.defineLocale('ku', {
54 months: months,
55 monthsShort: months,
56 weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split(
57 '_'
58 ),
59 weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split(
60 '_'
61 ),
62 weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
63 weekdaysParseExact: true,
64 longDateFormat: {
65 LT: 'HH:mm',
66 LTS: 'HH:mm:ss',
67 L: 'DD/MM/YYYY',
68 LL: 'D MMMM YYYY',
69 LLL: 'D MMMM YYYY HH:mm',
70 LLLL: 'dddd, D MMMM YYYY HH:mm',
71 },
72 meridiemParse: /ئێواره‌|به‌یانی/,
73 isPM: function (input) {
74 return /ئێواره‌/.test(input);
75 },
76 meridiem: function (hour, minute, isLower) {
77 if (hour < 12) {
78 return 'به‌یانی';
79 } else {
80 return 'ئێواره‌';
81 }
82 },
83 calendar: {
84 sameDay: '[ئه‌مرۆ كاتژمێر] LT',
85 nextDay: '[به‌یانی كاتژمێر] LT',
86 nextWeek: 'dddd [كاتژمێر] LT',
87 lastDay: '[دوێنێ كاتژمێر] LT',
88 lastWeek: 'dddd [كاتژمێر] LT',
89 sameElse: 'L',
90 },
91 relativeTime: {
92 future: 'له‌ %s',
93 past: '%s',
94 s: 'چه‌ند چركه‌یه‌ك',
95 ss: 'چركه‌ %d',
96 m: 'یه‌ك خوله‌ك',
97 mm: '%d خوله‌ك',
98 h: 'یه‌ك كاتژمێر',
99 hh: '%d كاتژمێر',
100 d: 'یه‌ك ڕۆژ',
101 dd: '%d ڕۆژ',
102 M: 'یه‌ك مانگ',
103 MM: '%d مانگ',
104 y: 'یه‌ك ساڵ',
105 yy: '%d ساڵ',
106 },
107 preparse: function (string) {
108 return string
109 .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
110 return numberMap[match];
111 })
112 .replace(/،/g, ',');
113 },
114 postformat: function (string) {
115 return string
116 .replace(/\d/g, function (match) {
117 return symbolMap[match];
118 })
119 .replace(/,/g, '،');
120 },
121 week: {
122 dow: 6, // Saturday is the first day of the week.
123 doy: 12, // The week that contains Jan 12th is the first week of the year.
124 },
125 });
126
127 return ku;
128
129 })));