Ohm-Management - Projektarbeit B-ME
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.

dv.js 2.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. //! moment.js locale configuration
  2. ;(function (global, factory) {
  3. typeof exports === 'object' && typeof module !== 'undefined'
  4. && typeof require === 'function' ? factory(require('../moment')) :
  5. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  6. factory(global.moment)
  7. }(this, (function (moment) { 'use strict';
  8. var months = [
  9. 'ޖެނުއަރީ',
  10. 'ފެބްރުއަރީ',
  11. 'މާރިޗު',
  12. 'އޭޕްރީލު',
  13. 'މޭ',
  14. 'ޖޫން',
  15. 'ޖުލައި',
  16. 'އޯގަސްޓު',
  17. 'ސެޕްޓެމްބަރު',
  18. 'އޮކްޓޯބަރު',
  19. 'ނޮވެމްބަރު',
  20. 'ޑިސެމްބަރު'
  21. ], weekdays = [
  22. 'އާދިއްތަ',
  23. 'ހޯމަ',
  24. 'އަންގާރަ',
  25. 'ބުދަ',
  26. 'ބުރާސްފަތި',
  27. 'ހުކުރު',
  28. 'ހޮނިހިރު'
  29. ];
  30. var dv = moment.defineLocale('dv', {
  31. months : months,
  32. monthsShort : months,
  33. weekdays : weekdays,
  34. weekdaysShort : weekdays,
  35. weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  36. longDateFormat : {
  37. LT : 'HH:mm',
  38. LTS : 'HH:mm:ss',
  39. L : 'D/M/YYYY',
  40. LL : 'D MMMM YYYY',
  41. LLL : 'D MMMM YYYY HH:mm',
  42. LLLL : 'dddd D MMMM YYYY HH:mm'
  43. },
  44. meridiemParse: /މކ|މފ/,
  45. isPM : function (input) {
  46. return 'މފ' === input;
  47. },
  48. meridiem : function (hour, minute, isLower) {
  49. if (hour < 12) {
  50. return 'މކ';
  51. } else {
  52. return 'މފ';
  53. }
  54. },
  55. calendar : {
  56. sameDay : '[މިއަދު] LT',
  57. nextDay : '[މާދަމާ] LT',
  58. nextWeek : 'dddd LT',
  59. lastDay : '[އިއްޔެ] LT',
  60. lastWeek : '[ފާއިތުވި] dddd LT',
  61. sameElse : 'L'
  62. },
  63. relativeTime : {
  64. future : 'ތެރޭގައި %s',
  65. past : 'ކުރިން %s',
  66. s : 'ސިކުންތުކޮޅެއް',
  67. ss : 'd% ސިކުންތު',
  68. m : 'މިނިޓެއް',
  69. mm : 'މިނިޓު %d',
  70. h : 'ގަޑިއިރެއް',
  71. hh : 'ގަޑިއިރު %d',
  72. d : 'ދުވަހެއް',
  73. dd : 'ދުވަސް %d',
  74. M : 'މަހެއް',
  75. MM : 'މަސް %d',
  76. y : 'އަހަރެއް',
  77. yy : 'އަހަރު %d'
  78. },
  79. preparse: function (string) {
  80. return string.replace(/،/g, ',');
  81. },
  82. postformat: function (string) {
  83. return string.replace(/,/g, '،');
  84. },
  85. week : {
  86. dow : 7, // Sunday is the first day of the week.
  87. doy : 12 // The week that contains Jan 12th is the first week of the year.
  88. }
  89. });
  90. return dv;
  91. })));