You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

135 lines
6.1 KiB

//! moment.js locale configuration
//! locale : Konkani Devanagari script [gom-deva]
//! author : The Discoverer : https://github.com/WikiDiscoverer
;(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';
//! moment.js locale configuration
function processRelativeTime(number, withoutSuffix, key, isFuture) {
var format = {
s: ['थडय', 'थड'],
ss: [number + ' स', number + ' सड'],
m: ['एकिणटन', 'एक मिट'],
mm: [number + ' मिणट', number + ' मिणट'],
h: ['एक वरन', 'एक वर'],
hh: [number + ' वर', number + ' वर'],
d: ['एकिन', 'एक दस'],
dd: [number + ' दि', number + ' दस'],
M: ['एकहयनन', 'एक महयन'],
MM: [number + ' महयन', number + ' महयन'],
y: ['एक वरन', 'एक वरस'],
yy: [number + ' वर', number + ' वर'],
};
return isFuture ? format[key][0] : format[key][1];
}
var gomDeva = moment.defineLocale('gom-deva', {
months: {
standalone: 'ज_फ_मच_एपल_म_जन_जलय_ऑगसट_सपबर_ऑकबर_नबर_डिबर'.split(
'_'
),
format: 'ज_फ_म_एप_म_ज_जलय_ऑगस_सपबर_ऑकबर_नबर_डिबर'.split(
'_'
),
isFormat: /MMMM(\s)+D[oD]?/,
},
monthsShort: 'ज._फ._मच_एप._म_जन_जल._ऑग._सप._ऑक._न._डि.'.split(
'_'
),
monthsParseExact: true,
weekdays: 'आयतर_सर_मगळर_बधवर_बिर_सर_शनवर'.split('_'),
weekdaysShort: 'आयत._सम._मगळ._बध._बत._सर._शन.'.split('_'),
weekdaysMin: 'आ_स_म_ब_ब_स_श'.split('_'),
weekdaysParseExact: true,
longDateFormat: {
LT: 'A h:mm [वजत]',
LTS: 'A h:mm:ss [वजत]',
L: 'DD-MM-YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY A h:mm [वजत]',
LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वजत]',
llll: 'ddd, D MMM YYYY, A h:mm [वजत]',
},
calendar: {
sameDay: '[आयज] LT',
nextDay: '[फ] LT',
nextWeek: '[फडल] dddd[,] LT',
lastDay: '[कल] LT',
lastWeek: '[फटल] dddd[,] LT',
sameElse: 'L',
},
relativeTime: {
future: '%s',
past: '%s आद',
s: processRelativeTime,
ss: processRelativeTime,
m: processRelativeTime,
mm: processRelativeTime,
h: processRelativeTime,
hh: processRelativeTime,
d: processRelativeTime,
dd: processRelativeTime,
M: processRelativeTime,
MM: processRelativeTime,
y: processRelativeTime,
yy: processRelativeTime,
},
dayOfMonthOrdinalParse: /\d{1,2}(वर)/,
ordinal: function (number, period) {
switch (period) {
// the ordinal 'वर' only applies to day of the month
case 'D':
return number + 'वर';
default:
case 'M':
case 'Q':
case 'DDD':
case 'd':
case 'w':
case 'W':
return number;
}
},
week: {
dow: 0, // Sunday is the first day of the week
doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
},
meridiemParse: /र|सक|दनप|स/,
meridiemHour: function (hour, meridiem) {
if (hour === 12) {
hour = 0;
}
if (meridiem === 'र') {
return hour < 4 ? hour : hour + 12;
} else if (meridiem === 'सक') {
return hour;
} else if (meridiem === 'दनप') {
return hour > 12 ? hour : hour + 12;
} else if (meridiem === 'स') {
return hour + 12;
}
},
meridiem: function (hour, minute, isLower) {
if (hour < 4) {
return 'र';
} else if (hour < 12) {
return 'सक';
} else if (hour < 16) {
return 'दनप';
} else if (hour < 20) {
return 'स';
} else {
return 'र';
}
},
});
return gomDeva;
})));