1 // moment.js language configuration
2 // language : catalan (ca)
3 // author : Juan G. Hurtado : https://github.com/juanghurtado
6 if (typeof define
=== 'function' && define
.amd
) {
7 define(['moment'], factory
); // AMD
8 } else if (typeof exports
=== 'object') {
9 module
.exports
= factory(require('../moment')); // Node
11 factory(window
.moment
); // Browser global
14 return moment
.lang('ca', {
15 months
: "gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),
16 monthsShort
: "gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),
17 weekdays
: "diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),
18 weekdaysShort
: "dg._dl._dt._dc._dj._dv._ds.".split("_"),
19 weekdaysMin
: "Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),
24 LLL
: "D MMMM YYYY LT",
25 LLLL
: "dddd D MMMM YYYY LT"
28 sameDay : function () {
29 return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
31 nextDay : function () {
32 return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
34 nextWeek : function () {
35 return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
37 lastDay : function () {
38 return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
40 lastWeek : function () {
41 return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
62 dow
: 1, // Monday is the first day of the week.
63 doy
: 4 // The week that contains Jan 4th is the first week of the year.