2021-12-10 21:39:54 +05:00
|
|
|
//! moment.js locale configuration
|
2021-12-25 00:37:51 +05:00
|
|
|
//! locale : Sindhi [sd]
|
|
|
|
//! author : Narain Sagar : https://github.com/narainsagar
|
2021-12-10 21:39:54 +05: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';
|
|
|
|
|
2021-12-25 00:37:51 +05:00
|
|
|
//! moment.js locale configuration
|
2021-12-10 21:39:54 +05:00
|
|
|
|
|
|
|
var months = [
|
2021-12-25 00:37:51 +05:00
|
|
|
'جنوري',
|
|
|
|
'فيبروري',
|
|
|
|
'مارچ',
|
|
|
|
'اپريل',
|
|
|
|
'مئي',
|
|
|
|
'جون',
|
|
|
|
'جولاءِ',
|
|
|
|
'آگسٽ',
|
|
|
|
'سيپٽمبر',
|
|
|
|
'آڪٽوبر',
|
|
|
|
'نومبر',
|
|
|
|
'ڊسمبر',
|
|
|
|
],
|
|
|
|
days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];
|
2021-12-10 21:39:54 +05:00
|
|
|
|
|
|
|
var sd = moment.defineLocale('sd', {
|
2021-12-25 00:37:51 +05: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',
|
2021-12-10 21:39:54 +05:00
|
|
|
},
|
|
|
|
meridiemParse: /صبح|شام/,
|
2021-12-25 00:37:51 +05:00
|
|
|
isPM: function (input) {
|
2021-12-10 21:39:54 +05:00
|
|
|
return 'شام' === input;
|
|
|
|
},
|
2021-12-25 00:37:51 +05:00
|
|
|
meridiem: function (hour, minute, isLower) {
|
2021-12-10 21:39:54 +05:00
|
|
|
if (hour < 12) {
|
|
|
|
return 'صبح';
|
|
|
|
}
|
|
|
|
return 'شام';
|
|
|
|
},
|
2021-12-25 00:37:51 +05:00
|
|
|
calendar: {
|
|
|
|
sameDay: '[اڄ] LT',
|
|
|
|
nextDay: '[سڀاڻي] LT',
|
|
|
|
nextWeek: 'dddd [اڳين هفتي تي] LT',
|
|
|
|
lastDay: '[ڪالهه] LT',
|
|
|
|
lastWeek: '[گزريل هفتي] dddd [تي] LT',
|
|
|
|
sameElse: 'L',
|
2021-12-10 21:39:54 +05:00
|
|
|
},
|
2021-12-25 00:37:51 +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 سال',
|
2021-12-10 21:39:54 +05:00
|
|
|
},
|
|
|
|
preparse: function (string) {
|
|
|
|
return string.replace(/،/g, ',');
|
|
|
|
},
|
|
|
|
postformat: function (string) {
|
|
|
|
return string.replace(/,/g, '،');
|
|
|
|
},
|
2021-12-25 00:37:51 +05: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.
|
|
|
|
},
|
2021-12-10 21:39:54 +05:00
|
|
|
});
|
|
|
|
|
|
|
|
return sd;
|
|
|
|
|
|
|
|
})));
|