You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
4.4 KiB

3 weeks ago
//! moment.js locale configuration
//! locale : tamil (ta)
//! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['moment'], factory) :
factory(global.moment)
}(this, function (moment) { 'use strict';
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 : ' ி ிி',
m : ' ிி',
mm : '%d ிி',
h : ' ி ',
hh : '%d ி ',
d : ' ',
dd : '%d ',
M : ' ',
MM : '%d ',
y : ' ',
yy : '%d '
},
ordinalParse: /\d{1,2}/,
ordinal : function (number) {
return number + '';
},
// 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 1st is the first week of the year.
}
});
return ta;
}));