2019-06-10 15:38:54 +00:00
|
|
|
|
//! moment.js locale configuration
|
2020-07-23 21:12:30 +00:00
|
|
|
|
//! locale : Kannada [kn]
|
|
|
|
|
//! author : Rajeev Naik : https://github.com/rajeevnaikte
|
2019-06-10 15:38:54 +00: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 21:12:30 +00:00
|
|
|
|
//! moment.js locale configuration
|
2019-06-10 15:38:54 +00:00
|
|
|
|
|
|
|
|
|
var symbolMap = {
|
2020-11-24 07:16:03 +00:00
|
|
|
|
1: '೧',
|
|
|
|
|
2: '೨',
|
|
|
|
|
3: '೩',
|
|
|
|
|
4: '೪',
|
|
|
|
|
5: '೫',
|
|
|
|
|
6: '೬',
|
|
|
|
|
7: '೭',
|
|
|
|
|
8: '೮',
|
|
|
|
|
9: '೯',
|
|
|
|
|
0: '೦',
|
2020-07-23 21:12:30 +00:00
|
|
|
|
},
|
|
|
|
|
numberMap = {
|
|
|
|
|
'೧': '1',
|
|
|
|
|
'೨': '2',
|
|
|
|
|
'೩': '3',
|
|
|
|
|
'೪': '4',
|
|
|
|
|
'೫': '5',
|
|
|
|
|
'೬': '6',
|
|
|
|
|
'೭': '7',
|
|
|
|
|
'೮': '8',
|
|
|
|
|
'೯': '9',
|
|
|
|
|
'೦': '0',
|
|
|
|
|
};
|
2019-06-10 15:38:54 +00:00
|
|
|
|
|
|
|
|
|
var kn = moment.defineLocale('kn', {
|
2020-07-23 21:12:30 +00:00
|
|
|
|
months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(
|
|
|
|
|
'_'
|
|
|
|
|
),
|
|
|
|
|
monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(
|
|
|
|
|
'_'
|
|
|
|
|
),
|
2019-06-10 15:38:54 +00:00
|
|
|
|
monthsParseExact: true,
|
2020-07-23 21:12:30 +00:00
|
|
|
|
weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(
|
|
|
|
|
'_'
|
|
|
|
|
),
|
|
|
|
|
weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
|
|
|
|
|
weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
|
|
|
|
|
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, D MMMM YYYY, A h:mm',
|
2019-06-10 15:38:54 +00:00
|
|
|
|
},
|
2020-07-23 21:12:30 +00:00
|
|
|
|
calendar: {
|
|
|
|
|
sameDay: '[ಇಂದು] LT',
|
|
|
|
|
nextDay: '[ನಾಳೆ] LT',
|
|
|
|
|
nextWeek: 'dddd, LT',
|
|
|
|
|
lastDay: '[ನಿನ್ನೆ] LT',
|
|
|
|
|
lastWeek: '[ಕೊನೆಯ] dddd, LT',
|
|
|
|
|
sameElse: 'L',
|
2019-06-10 15:38:54 +00:00
|
|
|
|
},
|
2020-07-23 21:12:30 +00:00
|
|
|
|
relativeTime: {
|
|
|
|
|
future: '%s ನಂತರ',
|
|
|
|
|
past: '%s ಹಿಂದೆ',
|
|
|
|
|
s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
|
|
|
|
|
ss: '%d ಸೆಕೆಂಡುಗಳು',
|
|
|
|
|
m: 'ಒಂದು ನಿಮಿಷ',
|
|
|
|
|
mm: '%d ನಿಮಿಷ',
|
|
|
|
|
h: 'ಒಂದು ಗಂಟೆ',
|
|
|
|
|
hh: '%d ಗಂಟೆ',
|
|
|
|
|
d: 'ಒಂದು ದಿನ',
|
|
|
|
|
dd: '%d ದಿನ',
|
|
|
|
|
M: 'ಒಂದು ತಿಂಗಳು',
|
|
|
|
|
MM: '%d ತಿಂಗಳು',
|
|
|
|
|
y: 'ಒಂದು ವರ್ಷ',
|
|
|
|
|
yy: '%d ವರ್ಷ',
|
2019-06-10 15:38:54 +00:00
|
|
|
|
},
|
|
|
|
|
preparse: function (string) {
|
|
|
|
|
return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
|
|
|
|
|
return numberMap[match];
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
postformat: function (string) {
|
|
|
|
|
return string.replace(/\d/g, function (match) {
|
|
|
|
|
return symbolMap[match];
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
|
2020-07-23 21:12:30 +00:00
|
|
|
|
meridiemHour: function (hour, meridiem) {
|
2019-06-10 15:38:54 +00:00
|
|
|
|
if (hour === 12) {
|
|
|
|
|
hour = 0;
|
|
|
|
|
}
|
|
|
|
|
if (meridiem === 'ರಾತ್ರಿ') {
|
|
|
|
|
return hour < 4 ? hour : hour + 12;
|
|
|
|
|
} else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
|
|
|
|
|
return hour;
|
|
|
|
|
} else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
|
|
|
|
|
return hour >= 10 ? hour : hour + 12;
|
|
|
|
|
} else if (meridiem === 'ಸಂಜೆ') {
|
|
|
|
|
return hour + 12;
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-07-23 21:12:30 +00:00
|
|
|
|
meridiem: function (hour, minute, isLower) {
|
2019-06-10 15:38:54 +00:00
|
|
|
|
if (hour < 4) {
|
|
|
|
|
return 'ರಾತ್ರಿ';
|
|
|
|
|
} else if (hour < 10) {
|
|
|
|
|
return 'ಬೆಳಿಗ್ಗೆ';
|
|
|
|
|
} else if (hour < 17) {
|
|
|
|
|
return 'ಮಧ್ಯಾಹ್ನ';
|
|
|
|
|
} else if (hour < 20) {
|
|
|
|
|
return 'ಸಂಜೆ';
|
|
|
|
|
} else {
|
|
|
|
|
return 'ರಾತ್ರಿ';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
|
2020-07-23 21:12:30 +00:00
|
|
|
|
ordinal: function (number) {
|
2019-06-10 15:38:54 +00:00
|
|
|
|
return number + 'ನೇ';
|
|
|
|
|
},
|
2020-07-23 21:12:30 +00:00
|
|
|
|
week: {
|
|
|
|
|
dow: 0, // Sunday is the first day of the week.
|
|
|
|
|
doy: 6, // The week that contains Jan 6th is the first week of the year.
|
|
|
|
|
},
|
2019-06-10 15:38:54 +00:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return kn;
|
|
|
|
|
|
|
|
|
|
})));
|