en-nz.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //! moment.js locale configuration
  2. //! locale : English (New Zealand) [en-nz]
  3. //! author : Luke McGregor : https://github.com/lukemcgregor
  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. var enNz = moment.defineLocale('en-nz', {
  11. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  12. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  13. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  14. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  15. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  16. longDateFormat : {
  17. LT : 'h:mm A',
  18. LTS : 'h:mm:ss A',
  19. L : 'DD/MM/YYYY',
  20. LL : 'D MMMM YYYY',
  21. LLL : 'D MMMM YYYY h:mm A',
  22. LLLL : 'dddd, D MMMM YYYY h:mm A'
  23. },
  24. calendar : {
  25. sameDay : '[Today at] LT',
  26. nextDay : '[Tomorrow at] LT',
  27. nextWeek : 'dddd [at] LT',
  28. lastDay : '[Yesterday at] LT',
  29. lastWeek : '[Last] dddd [at] LT',
  30. sameElse : 'L'
  31. },
  32. relativeTime : {
  33. future : 'in %s',
  34. past : '%s ago',
  35. s : 'a few 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 = (~~(number % 100 / 10) === 1) ? 'th' :
  51. (b === 1) ? 'st' :
  52. (b === 2) ? 'nd' :
  53. (b === 3) ? 'rd' : 'th';
  54. return number + output;
  55. },
  56. week : {
  57. dow : 1, // Monday is the first day of the week.
  58. doy : 4 // The week that contains Jan 4th is the first week of the year.
  59. }
  60. });
  61. return enNz;
  62. })));