2019-06-10 17:38:54 +02:00
|
|
|
//! moment.js locale configuration
|
2020-07-23 23:12:30 +02:00
|
|
|
//! locale : Urdu [ur]
|
|
|
|
//! author : Sawood Alam : https://github.com/ibnesayeed
|
|
|
|
//! author : Zack : https://github.com/ZackVision
|
2019-06-10 17:38:54 +02: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-07-23 23:12:30 +02:00
|
|
|
//! moment.js locale configuration
|
2019-06-10 17:38:54 +02:00
|
|
|
|
|
|
|
var months = [
|
2020-07-23 23:12:30 +02:00
|
|
|
'جنوری',
|
|
|
|
'فروری',
|
|
|
|
'مارچ',
|
|
|
|
'اپریل',
|
|
|
|
'مئی',
|
|
|
|
'جون',
|
|
|
|
'جولائی',
|
|
|
|
'اگست',
|
|
|
|
'ستمبر',
|
|
|
|
'اکتوبر',
|
|
|
|
'نومبر',
|
|
|
|
'دسمبر',
|
|
|
|
],
|
|
|
|
days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
|
2019-06-10 17:38:54 +02:00
|
|
|
|
|
|
|
var ur = moment.defineLocale('ur', {
|
2020-07-23 23:12:30 +02:00
|
|
|
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',
|
2019-06-10 17:38:54 +02:00
|
|
|
},
|
|
|
|
meridiemParse: /صبح|شام/,
|
2020-07-23 23:12:30 +02:00
|
|
|
isPM: function (input) {
|
2019-06-10 17:38:54 +02:00
|
|
|
return 'شام' === input;
|
|
|
|
},
|
2020-07-23 23:12:30 +02:00
|
|
|
meridiem: function (hour, minute, isLower) {
|
2019-06-10 17:38:54 +02:00
|
|
|
if (hour < 12) {
|
|
|
|
return 'صبح';
|
|
|
|
}
|
|
|
|
return 'شام';
|
|
|
|
},
|
2020-07-23 23:12:30 +02:00
|
|
|
calendar: {
|
|
|
|
sameDay: '[آج بوقت] LT',
|
|
|
|
nextDay: '[کل بوقت] LT',
|
|
|
|
nextWeek: 'dddd [بوقت] LT',
|
|
|
|
lastDay: '[گذشتہ روز بوقت] LT',
|
|
|
|
lastWeek: '[گذشتہ] dddd [بوقت] LT',
|
|
|
|
sameElse: 'L',
|
2019-06-10 17:38:54 +02:00
|
|
|
},
|
2020-07-23 23:12:30 +02: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-06-10 17:38:54 +02:00
|
|
|
},
|
|
|
|
preparse: function (string) {
|
|
|
|
return string.replace(/،/g, ',');
|
|
|
|
},
|
|
|
|
postformat: function (string) {
|
|
|
|
return string.replace(/,/g, '،');
|
|
|
|
},
|
2020-07-23 23:12:30 +02:00
|
|
|
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.
|
|
|
|
},
|
2019-06-10 17:38:54 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
return ur;
|
|
|
|
|
|
|
|
})));
|