en-ca.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //! moment.js locale configuration
  2. //! locale : English (Canada) [en-ca]
  3. //! author : Jonathan Abourbih : https://github.com/jonbca
  4. ;(function (global, factory) {
  5. typeof exports === 'object' && typeof module !== 'undefined'
  6. && typeof require === 'function' ? factory(require('../moment')) :
  7. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  8. factory(global.moment)
  9. }(this, (function (moment) { 'use strict';
  10. var enCa = moment.defineLocale('en-ca', {
  11. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  12. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  13. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  14. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  15. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  16. longDateFormat : {
  17. LT : 'h:mm A',
  18. LTS : 'h:mm:ss A',
  19. L : 'YYYY-MM-DD',
  20. LL : 'MMMM D, YYYY',
  21. LLL : 'MMMM D, YYYY h:mm A',
  22. LLLL : 'dddd, MMMM D, YYYY h:mm A'
  23. },
  24. calendar : {
  25. sameDay : '[Today at] LT',
  26. nextDay : '[Tomorrow at] LT',
  27. nextWeek : 'dddd [at] LT',
  28. lastDay : '[Yesterday at] LT',
  29. lastWeek : '[Last] dddd [at] LT',
  30. sameElse : 'L'
  31. },
  32. relativeTime : {
  33. future : 'in %s',
  34. past : '%s ago',
  35. s : 'a few seconds',
  36. m : 'a minute',
  37. mm : '%d minutes',
  38. h : 'an hour',
  39. hh : '%d hours',
  40. d : 'a day',
  41. dd : '%d days',
  42. M : 'a month',
  43. MM : '%d months',
  44. y : 'a year',
  45. yy : '%d years'
  46. },
  47. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  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. });
  57. return enCa;
  58. })));