2019-04-26 09:00:57 -04:00
|
|
|
|
//! moment.js locale configuration
|
2020-11-10 20:34:26 -05:00
|
|
|
|
//! locale : Kurdish [ku]
|
|
|
|
|
//! author : Shahram Mebashar : https://github.com/ShahramMebashar
|
2019-04-26 09:00:57 -04:00
|
|
|
|
|
|
|
|
|
;(function (global, factory) {
|
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
|
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
|
|
|
|
factory(global.moment)
|
|
|
|
|
}(this, (function (moment) { 'use strict';
|
|
|
|
|
|
2020-11-10 20:34:26 -05:00
|
|
|
|
//! moment.js locale configuration
|
2019-04-26 09:00:57 -04:00
|
|
|
|
|
|
|
|
|
var symbolMap = {
|
2020-11-10 20:34:26 -05:00
|
|
|
|
1: '١',
|
|
|
|
|
2: '٢',
|
|
|
|
|
3: '٣',
|
|
|
|
|
4: '٤',
|
|
|
|
|
5: '٥',
|
|
|
|
|
6: '٦',
|
|
|
|
|
7: '٧',
|
|
|
|
|
8: '٨',
|
|
|
|
|
9: '٩',
|
|
|
|
|
0: '٠',
|
|
|
|
|
},
|
|
|
|
|
numberMap = {
|
|
|
|
|
'١': '1',
|
|
|
|
|
'٢': '2',
|
|
|
|
|
'٣': '3',
|
|
|
|
|
'٤': '4',
|
|
|
|
|
'٥': '5',
|
|
|
|
|
'٦': '6',
|
|
|
|
|
'٧': '7',
|
|
|
|
|
'٨': '8',
|
|
|
|
|
'٩': '9',
|
|
|
|
|
'٠': '0',
|
|
|
|
|
},
|
|
|
|
|
months = [
|
|
|
|
|
'کانونی دووەم',
|
|
|
|
|
'شوبات',
|
|
|
|
|
'ئازار',
|
|
|
|
|
'نیسان',
|
|
|
|
|
'ئایار',
|
|
|
|
|
'حوزەیران',
|
|
|
|
|
'تەمموز',
|
|
|
|
|
'ئاب',
|
|
|
|
|
'ئەیلوول',
|
|
|
|
|
'تشرینی یەكەم',
|
|
|
|
|
'تشرینی دووەم',
|
|
|
|
|
'كانونی یەکەم',
|
|
|
|
|
];
|
2019-04-26 09:00:57 -04:00
|
|
|
|
|
|
|
|
|
var ku = moment.defineLocale('ku', {
|
2020-11-10 20:34:26 -05:00
|
|
|
|
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',
|
2019-04-26 09:00:57 -04:00
|
|
|
|
},
|
|
|
|
|
meridiemParse: /ئێواره|بهیانی/,
|
|
|
|
|
isPM: function (input) {
|
|
|
|
|
return /ئێواره/.test(input);
|
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
|
meridiem: function (hour, minute, isLower) {
|
2019-04-26 09:00:57 -04:00
|
|
|
|
if (hour < 12) {
|
|
|
|
|
return 'بهیانی';
|
|
|
|
|
} else {
|
|
|
|
|
return 'ئێواره';
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
|
calendar: {
|
|
|
|
|
sameDay: '[ئهمرۆ كاتژمێر] LT',
|
|
|
|
|
nextDay: '[بهیانی كاتژمێر] LT',
|
|
|
|
|
nextWeek: 'dddd [كاتژمێر] LT',
|
|
|
|
|
lastDay: '[دوێنێ كاتژمێر] LT',
|
|
|
|
|
lastWeek: 'dddd [كاتژمێر] LT',
|
|
|
|
|
sameElse: 'L',
|
2019-04-26 09:00:57 -04:00
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
|
relativeTime: {
|
|
|
|
|
future: 'له %s',
|
|
|
|
|
past: '%s',
|
|
|
|
|
s: 'چهند چركهیهك',
|
|
|
|
|
ss: 'چركه %d',
|
|
|
|
|
m: 'یهك خولهك',
|
|
|
|
|
mm: '%d خولهك',
|
|
|
|
|
h: 'یهك كاتژمێر',
|
|
|
|
|
hh: '%d كاتژمێر',
|
|
|
|
|
d: 'یهك ڕۆژ',
|
|
|
|
|
dd: '%d ڕۆژ',
|
|
|
|
|
M: 'یهك مانگ',
|
|
|
|
|
MM: '%d مانگ',
|
|
|
|
|
y: 'یهك ساڵ',
|
|
|
|
|
yy: '%d ساڵ',
|
2019-04-26 09:00:57 -04:00
|
|
|
|
},
|
|
|
|
|
preparse: function (string) {
|
2020-11-10 20:34:26 -05:00
|
|
|
|
return string
|
|
|
|
|
.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
|
|
|
|
|
return numberMap[match];
|
|
|
|
|
})
|
|
|
|
|
.replace(/،/g, ',');
|
2019-04-26 09:00:57 -04:00
|
|
|
|
},
|
|
|
|
|
postformat: function (string) {
|
2020-11-10 20:34:26 -05:00
|
|
|
|
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.
|
2019-04-26 09:00:57 -04:00
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return ku;
|
|
|
|
|
|
|
|
|
|
})));
|