You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
3.9 KiB

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