1 //! moment.js locale configuration
2 //! locale : Tamil [ta]
3 //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
5 ;(function (global
, factory
) {
6 typeof exports
=== 'object' && typeof module
!== 'undefined'
7 && typeof require
=== 'function' ? factory(require('../moment')) :
8 typeof define
=== 'function' && define
.amd
? define(['../moment'], factory
) :
10 }(this, (function (moment
) { 'use strict';
38 var ta
= moment
.defineLocale('ta', {
39 months
: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
40 monthsShort
: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
41 weekdays
: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
42 weekdaysShort
: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
43 weekdaysMin
: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
49 LLL
: 'D MMMM YYYY, HH:mm',
50 LLLL
: 'dddd, D MMMM YYYY, HH:mm'
53 sameDay
: '[இன்று] LT',
54 nextDay
: '[நாளை] LT',
55 nextWeek
: 'dddd, LT',
56 lastDay
: '[நேற்று] LT',
57 lastWeek
: '[கடந்த வாரம்] dddd, LT',
63 s
: 'ஒரு சில விநாடிகள்',
75 dayOfMonthOrdinalParse
: /\d{1,2}வது/,
76 ordinal : function (number
) {
77 return number
+ 'வது';
79 preparse: function (string
) {
80 return string
.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match
) {
81 return numberMap
[match
];
84 postformat: function (string
) {
85 return string
.replace(/\d/g, function (match
) {
86 return symbolMap
[match
];
89 // refer http://ta.wikipedia.org/s/1er1
90 meridiemParse
: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
91 meridiem : function (hour
, minute
, isLower
) {
94 } else if (hour
< 6) {
95 return ' வைகறை'; // வைகறை
96 } else if (hour
< 10) {
97 return ' காலை'; // காலை
98 } else if (hour
< 14) {
99 return ' நண்பகல்'; // நண்பகல்
100 } else if (hour
< 18) {
101 return ' எற்பாடு'; // எற்பாடு
102 } else if (hour
< 22) {
103 return ' மாலை'; // மாலை
108 meridiemHour : function (hour
, meridiem
) {
112 if (meridiem
=== 'யாமம்') {
113 return hour
< 2 ? hour
: hour
+ 12;
114 } else if (meridiem
=== 'வைகறை' || meridiem
=== 'காலை') {
116 } else if (meridiem
=== 'நண்பகல்') {
117 return hour
>= 10 ? hour
: hour
+ 12;
123 dow
: 0, // Sunday is the first day of the week.
124 doy
: 6 // The week that contains Jan 1st is the first week of the year.