en-il.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //! moment.js locale configuration
  2. //! locale : English (Israel) [en-il]
  3. //! author : Chris Gedrim : https://github.com/chrisgedrim
  4. import moment from '../moment';
  5. export default moment.defineLocale('en-il', {
  6. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7. '_'
  8. ),
  9. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  10. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  11. '_'
  12. ),
  13. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  14. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  15. longDateFormat: {
  16. LT: 'HH:mm',
  17. LTS: 'HH:mm:ss',
  18. L: 'DD/MM/YYYY',
  19. LL: 'D MMMM YYYY',
  20. LLL: 'D MMMM YYYY HH:mm',
  21. LLLL: 'dddd, D MMMM YYYY HH:mm',
  22. },
  23. calendar: {
  24. sameDay: '[Today at] LT',
  25. nextDay: '[Tomorrow at] LT',
  26. nextWeek: 'dddd [at] LT',
  27. lastDay: '[Yesterday at] LT',
  28. lastWeek: '[Last] dddd [at] LT',
  29. sameElse: 'L',
  30. },
  31. relativeTime: {
  32. future: 'in %s',
  33. past: '%s ago',
  34. s: 'a few seconds',
  35. ss: '%d seconds',
  36. m: 'a minute',
  37. mm: '%d minutes',
  38. h: 'an hour',
  39. hh: '%d hours',
  40. d: 'a day',
  41. dd: '%d days',
  42. M: 'a month',
  43. MM: '%d months',
  44. y: 'a year',
  45. yy: '%d years',
  46. },
  47. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  48. ordinal: function (number) {
  49. var b = number % 10,
  50. output =
  51. ~~((number % 100) / 10) === 1
  52. ? 'th'
  53. : b === 1
  54. ? 'st'
  55. : b === 2
  56. ? 'nd'
  57. : b === 3
  58. ? 'rd'
  59. : 'th';
  60. return number + output;
  61. },
  62. });