resto-dhepot/public/assets/plugins/moment/locale/gom-deva.js

136 lines
6.1 KiB
JavaScript

//! 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;
})));