en-ie.js 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //! moment.js locale configuration
  2. //! locale : English (Ireland) [en-ie]
  3. //! author : Chris Cartlidge : https://github.com/chriscartlidge
  4. import moment from '../moment';
  5. export default moment.defineLocale('en-ie', {
  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. week: {
  63. dow: 1, // Monday is the first day of the week.
  64. doy: 4, // The week that contains Jan 4th is the first week of the year.
  65. },
  66. });