sd.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. //! moment.js locale configuration
  2. //! locale : Sindhi [sd]
  3. //! author : Narain Sagar : https://github.com/narainsagar
  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. ];
  24. var days = [
  25. 'آچر',
  26. 'سومر',
  27. 'اڱارو',
  28. 'اربع',
  29. 'خميس',
  30. 'جمع',
  31. 'ڇنڇر'
  32. ];
  33. var sd = moment.defineLocale('sd', {
  34. months : months,
  35. monthsShort : months,
  36. weekdays : days,
  37. weekdaysShort : days,
  38. weekdaysMin : days,
  39. longDateFormat : {
  40. LT : 'HH:mm',
  41. LTS : 'HH:mm:ss',
  42. L : 'DD/MM/YYYY',
  43. LL : 'D MMMM YYYY',
  44. LLL : 'D MMMM YYYY HH:mm',
  45. LLLL : 'dddd، D MMMM YYYY HH:mm'
  46. },
  47. meridiemParse: /صبح|شام/,
  48. isPM : function (input) {
  49. return 'شام' === input;
  50. },
  51. meridiem : function (hour, minute, isLower) {
  52. if (hour < 12) {
  53. return 'صبح';
  54. }
  55. return 'شام';
  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 : 1, // Monday is the first day of the week.
  88. doy : 4 // The week that contains Jan 4th is the first week of the year.
  89. }
  90. });
  91. return sd;
  92. })));