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.

98 lines
3.0 KiB

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