en-ca.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //! moment.js locale configuration
  2. //! locale : canadian english (en-ca)
  3. //! author : Jonathan Abourbih : https://github.com/jonbca
  4. (function (global, factory) {
  5. typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
  6. typeof define === 'function' && define.amd ? define(['moment'], factory) :
  7. factory(global.moment)
  8. }(this, function (moment) { 'use strict';
  9. var en_ca = moment.defineLocale('en-ca', {
  10. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  11. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  12. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  13. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  14. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  15. longDateFormat : {
  16. LT : 'h:mm A',
  17. LTS : 'h:mm:ss A',
  18. L : 'YYYY-MM-DD',
  19. LL : 'D MMMM, YYYY',
  20. LLL : 'D MMMM, YYYY h:mm A',
  21. LLLL : 'dddd, D MMMM, YYYY h:mm A'
  22. },
  23. calendar : {
  24. sameDay : '[Today at] LT',
  25. nextDay : '[Tomorrow at] LT',
  26. nextWeek : 'dddd [at] LT',
  27. lastDay : '[Yesterday at] LT',
  28. lastWeek : '[Last] dddd [at] LT',
  29. sameElse : 'L'
  30. },
  31. relativeTime : {
  32. future : 'in %s',
  33. past : '%s ago',
  34. s : 'a few 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. ordinalParse: /\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 en_ca;
  57. }));