You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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