ca.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // moment.js language configuration
  2. // language : catalan (ca)
  3. // author : Juan G. Hurtado : https://github.com/juanghurtado
  4. (function (factory) {
  5. if (typeof define === 'function' && define.amd) {
  6. define(['moment'], factory); // AMD
  7. } else if (typeof exports === 'object') {
  8. module.exports = factory(require('../moment')); // Node
  9. } else {
  10. factory(window.moment); // Browser global
  11. }
  12. }(function (moment) {
  13. return moment.lang('ca', {
  14. months : "gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),
  15. monthsShort : "gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),
  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. longDateFormat : {
  20. LT : "H:mm",
  21. L : "DD/MM/YYYY",
  22. LL : "D MMMM YYYY",
  23. LLL : "D MMMM YYYY LT",
  24. LLLL : "dddd D MMMM YYYY LT"
  25. },
  26. calendar : {
  27. sameDay : function () {
  28. return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  29. },
  30. nextDay : function () {
  31. return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  32. },
  33. nextWeek : function () {
  34. return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  35. },
  36. lastDay : function () {
  37. return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  38. },
  39. lastWeek : function () {
  40. return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  41. },
  42. sameElse : 'L'
  43. },
  44. relativeTime : {
  45. future : "en %s",
  46. past : "fa %s",
  47. s : "uns segons",
  48. m : "un minut",
  49. mm : "%d minuts",
  50. h : "una hora",
  51. hh : "%d hores",
  52. d : "un dia",
  53. dd : "%d dies",
  54. M : "un mes",
  55. MM : "%d mesos",
  56. y : "un any",
  57. yy : "%d anys"
  58. },
  59. ordinal : '%dº',
  60. week : {
  61. dow : 1, // Monday is the first day of the week.
  62. doy : 4 // The week that contains Jan 4th is the first week of the year.
  63. }
  64. });
  65. }));