Innovenergy_trunk/frontend/node_modules/moment/locale/ta.js

143 lines
5.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//! moment.js locale configuration
//! locale : Tamil [ta]
//! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
;(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
var symbolMap = {
1: '௧',
2: '௨',
3: '௩',
4: '௪',
5: '',
6: '',
7: '',
8: '',
9: '',
0: '',
},
numberMap = {
'': '1',
'': '2',
'': '3',
'': '4',
'': '5',
'': '6',
'': '7',
'': '8',
'': '9',
'': '0',
};
var ta = moment.defineLocale('ta', {
months: 'ஜனவரி_பிரவரி_ம_ஏபரல_ம_ஜ_ஜ_ஆகஸ_சபர_அகபர_நவமபர_டிசமபர'.split(
'_'
),
monthsShort:
'ஜனவரி_பிரவரி_ம_ஏபரல_ம_ஜ_ஜ_ஆகஸ_சபர_அகபர_நவமபர_டிசமபர'.split(
'_'
),
weekdays:
'ிிழம_திகடிழம_சிழம_பதனிழம_விழகிழம_விிழம_சனிிழம'.split(
'_'
),
weekdaysShort: 'ி_திகள_ச_பதன_விழன_வி_சனி'.split(
'_'
),
weekdaysMin: '_தி_ச_ப_வி_வ_ச'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY, HH:mm',
LLLL: 'dddd, D MMMM YYYY, HH:mm',
},
calendar: {
sameDay: '[இன] LT',
nextDay: '[] LT',
nextWeek: 'dddd, LT',
lastDay: '[] LT',
lastWeek: '[கடந ரம] dddd, LT',
sameElse: 'L',
},
relativeTime: {
future: '%s இல',
past: '%s ',
s: 'ஒர ி ிிகள',
ss: '%d ிிகள',
m: 'ஒர ிிடம',
mm: '%d ிிடஙகள',
h: 'ஒர மணி ரம',
hh: '%d மணி ரம',
d: 'ஒர ',
dd: '%d கள',
M: 'ஒர தம',
MM: '%d தஙகள',
y: 'ஒர வரடம',
yy: '%d ஆணகள',
},
dayOfMonthOrdinalParse: /\d{1,2}வது/,
ordinal: function (number) {
return number + 'வத';
},
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];
});
},
// refer http://ta.wikipedia.org/s/1er1
meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
meridiem: function (hour, minute, isLower) {
if (hour < 2) {
return ' மம';
} else if (hour < 6) {
return ' கற'; // வைகறை
} else if (hour < 10) {
return ' '; // காலை
} else if (hour < 14) {
return ' நணபகல'; // நண்பகல்
} else if (hour < 18) {
return ' எற'; // எற்பாடு
} else if (hour < 22) {
return ' '; // மாலை
} else {
return ' மம';
}
},
meridiemHour: function (hour, meridiem) {
if (hour === 12) {
hour = 0;
}
if (meridiem === 'மம') {
return hour < 2 ? hour : hour + 12;
} else if (meridiem === 'கற' || meridiem === '') {
return hour;
} else if (meridiem === 'நணபகல') {
return hour >= 10 ? hour : hour + 12;
} else {
return hour + 12;
}
},
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.
},
});
return ta;
})));