暂无描述

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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 ca = moment.defineLocale('ca', {
  9. months : {
  10. standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
  11. format: 'de gener_de febrer_de març_d\'abril_de maig_de juny_de juliol_d\'agost_de setembre_d\'octubre_de novembre_de desembre'.split('_'),
  12. isFormat: /D[oD]?(\s)+MMMM/
  13. },
  14. monthsShort : 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
  15. monthsParseExact : true,
  16. weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
  17. weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  18. weekdaysMin : 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
  19. weekdaysParseExact : true,
  20. longDateFormat : {
  21. LT : 'H:mm',
  22. LTS : 'H:mm:ss',
  23. L : 'DD/MM/YYYY',
  24. LL : 'D MMMM [de] YYYY',
  25. ll : 'D MMM YYYY',
  26. LLL : 'D MMMM [de] YYYY [a les] H:mm',
  27. lll : 'D MMM YYYY, H:mm',
  28. LLLL : 'dddd D MMMM [de] YYYY [a les] H:mm',
  29. llll : 'ddd D MMM YYYY, H:mm'
  30. },
  31. calendar : {
  32. sameDay : function () {
  33. return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  34. },
  35. nextDay : function () {
  36. return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  37. },
  38. nextWeek : function () {
  39. return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  40. },
  41. lastDay : function () {
  42. return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  43. },
  44. lastWeek : function () {
  45. return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  46. },
  47. sameElse : 'L'
  48. },
  49. relativeTime : {
  50. future : 'd\'aquí %s',
  51. past : 'fa %s',
  52. s : 'uns segons',
  53. ss : '%d segons',
  54. m : 'un minut',
  55. mm : '%d minuts',
  56. h : 'una hora',
  57. hh : '%d hores',
  58. d : 'un dia',
  59. dd : '%d dies',
  60. M : 'un mes',
  61. MM : '%d mesos',
  62. y : 'un any',
  63. yy : '%d anys'
  64. },
  65. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  66. ordinal : function (number, period) {
  67. var output = (number === 1) ? 'r' :
  68. (number === 2) ? 'n' :
  69. (number === 3) ? 'r' :
  70. (number === 4) ? 't' : 'è';
  71. if (period === 'w' || period === 'W') {
  72. output = 'a';
  73. }
  74. return number + output;
  75. },
  76. week : {
  77. dow : 1, // Monday is the first day of the week.
  78. doy : 4 // The week that contains Jan 4th is the first week of the year.
  79. }
  80. });
  81. return ca;
  82. })));