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