2019-06-10 17:38:54 +02:00
|
|
|
//! moment.js locale configuration
|
2020-07-23 23:12:30 +02:00
|
|
|
//! locale : Konkani Latin script [gom-latn]
|
|
|
|
//! author : The Discoverer : https://github.com/WikiDiscoverer
|
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
|
|
|
|
|
|
|
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
|
|
|
var format = {
|
2020-07-23 23:12:30 +02:00
|
|
|
s: ['thoddea sekondamni', 'thodde sekond'],
|
|
|
|
ss: [number + ' sekondamni', number + ' sekond'],
|
|
|
|
m: ['eka mintan', 'ek minut'],
|
|
|
|
mm: [number + ' mintamni', number + ' mintam'],
|
|
|
|
h: ['eka voran', 'ek vor'],
|
|
|
|
hh: [number + ' voramni', number + ' voram'],
|
|
|
|
d: ['eka disan', 'ek dis'],
|
|
|
|
dd: [number + ' disamni', number + ' dis'],
|
|
|
|
M: ['eka mhoinean', 'ek mhoino'],
|
|
|
|
MM: [number + ' mhoineamni', number + ' mhoine'],
|
|
|
|
y: ['eka vorsan', 'ek voros'],
|
|
|
|
yy: [number + ' vorsamni', number + ' vorsam'],
|
2019-06-10 17:38:54 +02:00
|
|
|
};
|
2020-07-23 23:12:30 +02:00
|
|
|
return isFuture ? format[key][0] : format[key][1];
|
2019-06-10 17:38:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
var gomLatn = moment.defineLocale('gom-latn', {
|
2020-07-23 23:12:30 +02:00
|
|
|
months: {
|
|
|
|
standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(
|
|
|
|
'_'
|
|
|
|
),
|
|
|
|
format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(
|
|
|
|
'_'
|
|
|
|
),
|
|
|
|
isFormat: /MMMM(\s)+D[oD]?/,
|
2019-06-10 17:38:54 +02:00
|
|
|
},
|
2020-07-23 23:12:30 +02:00
|
|
|
monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split(
|
|
|
|
'_'
|
|
|
|
),
|
|
|
|
monthsParseExact: true,
|
|
|
|
weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
|
|
|
|
weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
|
|
|
|
weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
|
|
|
|
weekdaysParseExact: true,
|
|
|
|
longDateFormat: {
|
|
|
|
LT: 'A h:mm [vazta]',
|
|
|
|
LTS: 'A h:mm:ss [vazta]',
|
|
|
|
L: 'DD-MM-YYYY',
|
|
|
|
LL: 'D MMMM YYYY',
|
|
|
|
LLL: 'D MMMM YYYY A h:mm [vazta]',
|
|
|
|
LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
|
|
|
|
llll: 'ddd, D MMM YYYY, A h:mm [vazta]',
|
|
|
|
},
|
|
|
|
calendar: {
|
2019-06-10 17:38:54 +02:00
|
|
|
sameDay: '[Aiz] LT',
|
|
|
|
nextDay: '[Faleam] LT',
|
2020-07-23 23:12:30 +02:00
|
|
|
nextWeek: '[Fuddlo] dddd[,] LT',
|
2019-06-10 17:38:54 +02:00
|
|
|
lastDay: '[Kal] LT',
|
2020-07-23 23:12:30 +02:00
|
|
|
lastWeek: '[Fattlo] 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 adim',
|
|
|
|
s: processRelativeTime,
|
|
|
|
ss: processRelativeTime,
|
|
|
|
m: processRelativeTime,
|
|
|
|
mm: processRelativeTime,
|
|
|
|
h: processRelativeTime,
|
|
|
|
hh: processRelativeTime,
|
|
|
|
d: processRelativeTime,
|
|
|
|
dd: processRelativeTime,
|
|
|
|
M: processRelativeTime,
|
|
|
|
MM: processRelativeTime,
|
|
|
|
y: processRelativeTime,
|
|
|
|
yy: processRelativeTime,
|
2019-06-10 17:38:54 +02:00
|
|
|
},
|
2020-07-23 23:12:30 +02:00
|
|
|
dayOfMonthOrdinalParse: /\d{1,2}(er)/,
|
|
|
|
ordinal: function (number, period) {
|
2019-06-10 17:38:54 +02:00
|
|
|
switch (period) {
|
|
|
|
// the ordinal 'er' only applies to day of the month
|
|
|
|
case 'D':
|
|
|
|
return number + 'er';
|
|
|
|
default:
|
|
|
|
case 'M':
|
|
|
|
case 'Q':
|
|
|
|
case 'DDD':
|
|
|
|
case 'd':
|
|
|
|
case 'w':
|
|
|
|
case 'W':
|
|
|
|
return number;
|
|
|
|
}
|
|
|
|
},
|
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
|
|
|
},
|
2020-07-23 23:12:30 +02:00
|
|
|
meridiemParse: /rati|sokallim|donparam|sanje/,
|
|
|
|
meridiemHour: function (hour, meridiem) {
|
2019-06-10 17:38:54 +02:00
|
|
|
if (hour === 12) {
|
|
|
|
hour = 0;
|
|
|
|
}
|
|
|
|
if (meridiem === 'rati') {
|
|
|
|
return hour < 4 ? hour : hour + 12;
|
2020-07-23 23:12:30 +02:00
|
|
|
} else if (meridiem === 'sokallim') {
|
2019-06-10 17:38:54 +02:00
|
|
|
return hour;
|
|
|
|
} else if (meridiem === 'donparam') {
|
|
|
|
return hour > 12 ? hour : hour + 12;
|
|
|
|
} else if (meridiem === 'sanje') {
|
|
|
|
return hour + 12;
|
|
|
|
}
|
|
|
|
},
|
2020-07-23 23:12:30 +02:00
|
|
|
meridiem: function (hour, minute, isLower) {
|
2019-06-10 17:38:54 +02:00
|
|
|
if (hour < 4) {
|
|
|
|
return 'rati';
|
|
|
|
} else if (hour < 12) {
|
2020-07-23 23:12:30 +02:00
|
|
|
return 'sokallim';
|
2019-06-10 17:38:54 +02:00
|
|
|
} else if (hour < 16) {
|
|
|
|
return 'donparam';
|
|
|
|
} else if (hour < 20) {
|
|
|
|
return 'sanje';
|
|
|
|
} else {
|
|
|
|
return 'rati';
|
|
|
|
}
|
2020-07-23 23:12:30 +02:00
|
|
|
},
|
2019-06-10 17:38:54 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
return gomLatn;
|
|
|
|
|
|
|
|
})));
|