Debian Codegraph @

resources/lib/moment/locale/te.js

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