en-ca.js 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. //! moment.js locale configuration
  11. var enCa = moment.defineLocale('en-ca', {
  12. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  13. '_'
  14. ),
  15. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  16. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  17. '_'
  18. ),
  19. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  20. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  21. longDateFormat: {
  22. LT: 'h:mm A',
  23. LTS: 'h:mm:ss A',
  24. L: 'YYYY-MM-DD',
  25. LL: 'MMMM D, YYYY',
  26. LLL: 'MMMM D, YYYY h:mm A',
  27. LLLL: 'dddd, MMMM D, YYYY h:mm A',
  28. },
  29. calendar: {
  30. sameDay: '[Today at] LT',
  31. nextDay: '[Tomorrow at] LT',
  32. nextWeek: 'dddd [at] LT',
  33. lastDay: '[Yesterday at] LT',
  34. lastWeek: '[Last] dddd [at] LT',
  35. sameElse: 'L',
  36. },
  37. relativeTime: {
  38. future: 'in %s',
  39. past: '%s ago',
  40. s: 'a few seconds',
  41. ss: '%d seconds',
  42. m: 'a minute',
  43. mm: '%d minutes',
  44. h: 'an hour',
  45. hh: '%d hours',
  46. d: 'a day',
  47. dd: '%d days',
  48. M: 'a month',
  49. MM: '%d months',
  50. y: 'a year',
  51. yy: '%d years',
  52. },
  53. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  54. ordinal: function (number) {
  55. var b = number % 10,
  56. output =
  57. ~~((number % 100) / 10) === 1
  58. ? 'th'
  59. : b === 1
  60. ? 'st'
  61. : b === 2
  62. ? 'nd'
  63. : b === 3
  64. ? 'rd'
  65. : 'th';
  66. return number + output;
  67. },
  68. });
  69. return enCa;
  70. })));