sd.js 2.1 KB

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