dd068d0a3317ecc31ff56fc71f519f53a8f2842f7a697fd5ce18b4c134e742a0e4bed71b51dee983e0c1c167e33fa46487e92482e102f12d20337b575cbad9 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. //! moment.js locale configuration
  2. //! locale : Catalan [ca]
  3. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  4. import moment from '../moment';
  5. export default moment.defineLocale('ca', {
  6. months : 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
  7. monthsShort : 'gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.'.split('_'),
  8. monthsParseExact : true,
  9. weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
  10. weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  11. weekdaysMin : 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'),
  12. weekdaysParseExact : true,
  13. longDateFormat : {
  14. LT : 'H:mm',
  15. LTS : 'H:mm:ss',
  16. L : 'DD/MM/YYYY',
  17. LL : 'D MMMM YYYY',
  18. LLL : 'D MMMM YYYY H:mm',
  19. LLLL : 'dddd D MMMM YYYY H:mm'
  20. },
  21. calendar : {
  22. sameDay : function () {
  23. return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  24. },
  25. nextDay : function () {
  26. return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  27. },
  28. nextWeek : function () {
  29. return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  30. },
  31. lastDay : function () {
  32. return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  33. },
  34. lastWeek : function () {
  35. return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  36. },
  37. sameElse : 'L'
  38. },
  39. relativeTime : {
  40. future : 'en %s',
  41. past : 'fa %s',
  42. s : 'uns segons',
  43. m : 'un minut',
  44. mm : '%d minuts',
  45. h : 'una hora',
  46. hh : '%d hores',
  47. d : 'un dia',
  48. dd : '%d dies',
  49. M : 'un mes',
  50. MM : '%d mesos',
  51. y : 'un any',
  52. yy : '%d anys'
  53. },
  54. ordinalParse: /\d{1,2}(r|n|t|è|a)/,
  55. ordinal : function (number, period) {
  56. var output = (number === 1) ? 'r' :
  57. (number === 2) ? 'n' :
  58. (number === 3) ? 'r' :
  59. (number === 4) ? 't' : 'è';
  60. if (period === 'w' || period === 'W') {
  61. output = 'a';
  62. }
  63. return number + output;
  64. },
  65. week : {
  66. dow : 1, // Monday is the first day of the week.
  67. doy : 4 // The week that contains Jan 4th is the first week of the year.
  68. }
  69. });