//! moment.js locale configuration
//! locale : Urdu [ur]
//! author : Sawood Alam : https://github.com/ibnesayeed
//! author : Zack : https://github.com/ZackVision
;(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 ur = moment.defineLocale('ur', {
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 : '??? ?????',
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 ur;
})));
|