NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/moment/locale/gom-deva.js
2023-09-14 14:47:11 +08:00

136 lines
6.1 KiB
Java

//! 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: 1, // Monday is the first day of the week.
doy: 4, // The week that contains Jan 4th is the first week of the year.
},
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;
})));