You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.3 KiB

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