1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
| //! moment.js locale configuration
| //! locale : Telugu [te]
| //! author : Krishna Chaitanya Thota : https://github.com/kcthota
|
| ;(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 te = moment.defineLocale('te', {
| months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split(
| '_'
| ),
| monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split(
| '_'
| ),
| monthsParseExact: true,
| weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split(
| '_'
| ),
| weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
| weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
| longDateFormat: {
| LT: 'A h:mm',
| LTS: 'A h:mm:ss',
| L: 'DD/MM/YYYY',
| LL: 'D MMMM YYYY',
| LLL: 'D MMMM YYYY, A h:mm',
| LLLL: 'dddd, D MMMM YYYY, A h: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: '%dవ',
| meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
| meridiemHour: function (hour, meridiem) {
| if (hour === 12) {
| hour = 0;
| }
| if (meridiem === 'రాత్రి') {
| return hour < 4 ? hour : hour + 12;
| } else if (meridiem === 'ఉదయం') {
| return hour;
| } else if (meridiem === 'మధ్యాహ్నం') {
| return hour >= 10 ? hour : hour + 12;
| } else if (meridiem === 'సాయంత్రం') {
| return hour + 12;
| }
| },
| meridiem: function (hour, minute, isLower) {
| if (hour < 4) {
| return 'రాత్రి';
| } else if (hour < 10) {
| return 'ఉదయం';
| } else if (hour < 17) {
| return 'మధ్యాహ్నం';
| } else if (hour < 20) {
| return 'సాయంత్రం';
| } else {
| return 'రాత్రి';
| }
| },
| 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 te;
|
| })));
|
|