sd.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. //! moment.js locale configuration
  11. var months = [
  12. 'جنوري',
  13. 'فيبروري',
  14. 'مارچ',
  15. 'اپريل',
  16. 'مئي',
  17. 'جون',
  18. 'جولاءِ',
  19. 'آگسٽ',
  20. 'سيپٽمبر',
  21. 'آڪٽوبر',
  22. 'نومبر',
  23. 'ڊسمبر',
  24. ],
  25. days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];
  26. var sd = moment.defineLocale('sd', {
  27. months: months,
  28. monthsShort: months,
  29. weekdays: days,
  30. weekdaysShort: days,
  31. weekdaysMin: days,
  32. longDateFormat: {
  33. LT: 'HH:mm',
  34. LTS: 'HH:mm:ss',
  35. L: 'DD/MM/YYYY',
  36. LL: 'D MMMM YYYY',
  37. LLL: 'D MMMM YYYY HH:mm',
  38. LLLL: 'dddd، D MMMM YYYY HH:mm',
  39. },
  40. meridiemParse: /صبح|شام/,
  41. isPM: function (input) {
  42. return 'شام' === input;
  43. },
  44. meridiem: function (hour, minute, isLower) {
  45. if (hour < 12) {
  46. return 'صبح';
  47. }
  48. return 'شام';
  49. },
  50. calendar: {
  51. sameDay: '[اڄ] LT',
  52. nextDay: '[سڀاڻي] LT',
  53. nextWeek: 'dddd [اڳين هفتي تي] LT',
  54. lastDay: '[ڪالهه] LT',
  55. lastWeek: '[گزريل هفتي] dddd [تي] LT',
  56. sameElse: 'L',
  57. },
  58. relativeTime: {
  59. future: '%s پوء',
  60. past: '%s اڳ',
  61. s: 'چند سيڪنڊ',
  62. ss: '%d سيڪنڊ',
  63. m: 'هڪ منٽ',
  64. mm: '%d منٽ',
  65. h: 'هڪ ڪلاڪ',
  66. hh: '%d ڪلاڪ',
  67. d: 'هڪ ڏينهن',
  68. dd: '%d ڏينهن',
  69. M: 'هڪ مهينو',
  70. MM: '%d مهينا',
  71. y: 'هڪ سال',
  72. yy: '%d سال',
  73. },
  74. preparse: function (string) {
  75. return string.replace(/،/g, ',');
  76. },
  77. postformat: function (string) {
  78. return string.replace(/,/g, '،');
  79. },
  80. week: {
  81. dow: 1, // Monday is the first day of the week.
  82. doy: 4, // The week that contains Jan 4th is the first week of the year.
  83. },
  84. });
  85. return sd;
  86. })));