en-ca.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //! moment.js locale configuration
  2. ;(function (global, factory) {
  3. typeof exports === 'object' && typeof module !== 'undefined'
  4. && typeof require === 'function' ? factory(require('../moment')) :
  5. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  6. factory(global.moment)
  7. }(this, (function (moment) { 'use strict';
  8. var enCa = moment.defineLocale('en-ca', {
  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 : 'YYYY-MM-DD',
  18. LL : 'MMMM D, YYYY',
  19. LLL : 'MMMM D, YYYY h:mm A',
  20. LLLL : 'dddd, MMMM D, YYYY h:mm A'
  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. ss : '%d seconds',
  35. m : 'a minute',
  36. mm : '%d minutes',
  37. h : 'an hour',
  38. hh : '%d hours',
  39. d : 'a day',
  40. dd : '%d days',
  41. M : 'a month',
  42. MM : '%d months',
  43. y : 'a year',
  44. yy : '%d years'
  45. },
  46. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  47. ordinal : function (number) {
  48. var b = number % 10,
  49. output = (~~(number % 100 / 10) === 1) ? 'th' :
  50. (b === 1) ? 'st' :
  51. (b === 2) ? 'nd' :
  52. (b === 3) ? 'rd' : 'th';
  53. return number + output;
  54. }
  55. });
  56. return enCa;
  57. })));