2e3ad104f4413aa5f3de84fabba2c1af3a9b57e9a637c2d3b20917babc20fa6cd589c877887be3651495ab893e7d6115369ed66512d9d86c56e9e098961373 1.8 KB

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