6bdf48fa2d824a66d3de99506f07f7fef04a4860f84b0719b10e3d2c5243c1f2c76ad2a9539571a0e422a5be2b4969735923c1877cff22ca053b52629eb320 1.8 KB

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