53bab0d9c1e241e31d4a2006fc56702af3d67f3b
[lhc/web/wiklou.git] / resources / lib / moment / locale / ta.js
1 // moment.js locale configuration
2 // locale : tamil (ta)
3 // author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
4
5 (function (factory) {
6 if (typeof define === 'function' && define.amd) {
7 define(['moment'], factory); // AMD
8 } else if (typeof exports === 'object') {
9 module.exports = factory(require('../moment')); // Node
10 } else {
11 factory(window.moment); // Browser global
12 }
13 }(function (moment) {
14 /*var symbolMap = {
15 '1': '௧',
16 '2': '௨',
17 '3': '௩',
18 '4': '௪',
19 '5': '௫',
20 '6': '௬',
21 '7': '௭',
22 '8': '௮',
23 '9': '௯',
24 '0': '௦'
25 },
26 numberMap = {
27 '௧': '1',
28 '௨': '2',
29 '௩': '3',
30 '௪': '4',
31 '௫': '5',
32 '௬': '6',
33 '௭': '7',
34 '௮': '8',
35 '௯': '9',
36 '௦': '0'
37 }; */
38
39 return moment.defineLocale('ta', {
40 months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
41 monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
42 weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
43 weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
44 weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
45 longDateFormat : {
46 LT : 'HH:mm',
47 L : 'DD/MM/YYYY',
48 LL : 'D MMMM YYYY',
49 LLL : 'D MMMM YYYY, LT',
50 LLLL : 'dddd, D MMMM YYYY, LT'
51 },
52 calendar : {
53 sameDay : '[இன்று] LT',
54 nextDay : '[நாளை] LT',
55 nextWeek : 'dddd, LT',
56 lastDay : '[நேற்று] LT',
57 lastWeek : '[கடந்த வாரம்] dddd, LT',
58 sameElse : 'L'
59 },
60 relativeTime : {
61 future : '%s இல்',
62 past : '%s முன்',
63 s : 'ஒரு சில விநாடிகள்',
64 m : 'ஒரு நிமிடம்',
65 mm : '%d நிமிடங்கள்',
66 h : 'ஒரு மணி நேரம்',
67 hh : '%d மணி நேரம்',
68 d : 'ஒரு நாள்',
69 dd : '%d நாட்கள்',
70 M : 'ஒரு மாதம்',
71 MM : '%d மாதங்கள்',
72 y : 'ஒரு வருடம்',
73 yy : '%d ஆண்டுகள்'
74 },
75 /* preparse: function (string) {
76 return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
77 return numberMap[match];
78 });
79 },
80 postformat: function (string) {
81 return string.replace(/\d/g, function (match) {
82 return symbolMap[match];
83 });
84 },*/
85 ordinal : function (number) {
86 return number + 'வது';
87 },
88
89
90 // refer http://ta.wikipedia.org/s/1er1
91
92 meridiem : function (hour, minute, isLower) {
93 if (hour >= 6 && hour <= 10) {
94 return ' காலை';
95 } else if (hour >= 10 && hour <= 14) {
96 return ' நண்பகல்';
97 } else if (hour >= 14 && hour <= 18) {
98 return ' எற்பாடு';
99 } else if (hour >= 18 && hour <= 20) {
100 return ' மாலை';
101 } else if (hour >= 20 && hour <= 24) {
102 return ' இரவு';
103 } else if (hour >= 0 && hour <= 6) {
104 return ' வைகறை';
105 }
106 },
107 week : {
108 dow : 0, // Sunday is the first day of the week.
109 doy : 6 // The week that contains Jan 1st is the first week of the year.
110 }
111 });
112 }));