en-au.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // moment.js language configuration
  2. // language : australian english (en-au)
  3. (function (factory) {
  4. if (typeof define === 'function' && define.amd) {
  5. define(['moment'], factory); // AMD
  6. } else if (typeof exports === 'object') {
  7. module.exports = factory(require('../moment')); // Node
  8. } else {
  9. factory(window.moment); // Browser global
  10. }
  11. }(function (moment) {
  12. return moment.lang('en-au', {
  13. months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
  14. monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
  15. weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
  16. weekdaysShort : "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
  17. weekdaysMin : "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
  18. longDateFormat : {
  19. LT : "h:mm A",
  20. L : "DD/MM/YYYY",
  21. LL : "D MMMM YYYY",
  22. LLL : "D MMMM YYYY LT",
  23. LLLL : "dddd, D MMMM YYYY LT"
  24. },
  25. calendar : {
  26. sameDay : '[Today at] LT',
  27. nextDay : '[Tomorrow at] LT',
  28. nextWeek : 'dddd [at] LT',
  29. lastDay : '[Yesterday at] LT',
  30. lastWeek : '[Last] dddd [at] LT',
  31. sameElse : 'L'
  32. },
  33. relativeTime : {
  34. future : "in %s",
  35. past : "%s ago",
  36. s : "a few seconds",
  37. m : "a minute",
  38. mm : "%d minutes",
  39. h : "an hour",
  40. hh : "%d hours",
  41. d : "a day",
  42. dd : "%d days",
  43. M : "a month",
  44. MM : "%d months",
  45. y : "a year",
  46. yy : "%d years"
  47. },
  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. }));