mirror of
https://github.com/supanadit/todo.git
synced 2024-11-30 06:26:24 +00:00
98 lines
2.7 KiB
JavaScript
98 lines
2.7 KiB
JavaScript
|
//! moment.js locale configuration
|
||
|
|
||
|
;(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';
|
||
|
|
||
|
|
||
|
var months = [
|
||
|
'جنوري',
|
||
|
'فيبروري',
|
||
|
'مارچ',
|
||
|
'اپريل',
|
||
|
'مئي',
|
||
|
'جون',
|
||
|
'جولاءِ',
|
||
|
'آگسٽ',
|
||
|
'سيپٽمبر',
|
||
|
'آڪٽوبر',
|
||
|
'نومبر',
|
||
|
'ڊسمبر'
|
||
|
];
|
||
|
var days = [
|
||
|
'آچر',
|
||
|
'سومر',
|
||
|
'اڱارو',
|
||
|
'اربع',
|
||
|
'خميس',
|
||
|
'جمع',
|
||
|
'ڇنڇر'
|
||
|
];
|
||
|
|
||
|
var sd = moment.defineLocale('sd', {
|
||
|
months : months,
|
||
|
monthsShort : months,
|
||
|
weekdays : days,
|
||
|
weekdaysShort : days,
|
||
|
weekdaysMin : days,
|
||
|
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 'شام' === input;
|
||
|
},
|
||
|
meridiem : function (hour, minute, isLower) {
|
||
|
if (hour < 12) {
|
||
|
return 'صبح';
|
||
|
}
|
||
|
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, ',');
|
||
|
},
|
||
|
postformat: function (string) {
|
||
|
return string.replace(/,/g, '،');
|
||
|
},
|
||
|
week : {
|
||
|
dow : 1, // Monday is the first day of the week.
|
||
|
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
||
|
}
|
||
|
});
|
||
|
|
||
|
return sd;
|
||
|
|
||
|
})));
|