PHP Classes

File: CoffeeCMS/contents/themes/cfnews/assets/moment/src/locale/ta.js

Recommend this page to a friend!
  Classes of James Brows   Coffee CMS   CoffeeCMS/contents/themes/cfnews/assets/moment/src/locale/ta.js   Download  
File: CoffeeCMS/contents/themes/cfnews/assets/moment/src/locale/ta.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Coffee CMS
Content management system using MVC based themes
Author: By
Last change:
Date: 2 years ago
Size: 4,629 bytes
 

Contents

Class file image Download
//! moment.js locale configuration //! locale : Tamil [ta] //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404 import moment from '../moment'; var symbolMap = { '1': '?', '2': '?', '3': '?', '4': '?', '5': '?', '6': '?', '7': '?', '8': '?', '9': '?', '0': '?' }, numberMap = { '?': '1', '?': '2', '?': '3', '?': '4', '?': '5', '?': '6', '?': '7', '?': '8', '?': '9', '?': '0' }; export default 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 ????????' }, 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 1st is the first week of the year. } });