1 //! moment.js locale configuration
3 ;(function (global
, factory
) {
4 typeof exports
=== 'object' && typeof module
!== 'undefined'
5 && typeof require
=== 'function' ? factory(require('../moment')) :
6 typeof define
=== 'function' && define
.amd
? define(['../moment'], factory
) :
8 }(this, (function (moment
) { 'use strict';
11 var ca
= moment
.defineLocale('ca', {
13 standalone
: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
14 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('_'),
15 isFormat
: /D[oD]?(\s)+MMMM/
17 monthsShort
: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
18 monthsParseExact
: true,
19 weekdays
: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
20 weekdaysShort
: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
21 weekdaysMin
: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
22 weekdaysParseExact
: true,
27 LL
: 'D MMMM [de] YYYY',
29 LLL
: 'D MMMM [de] YYYY [a les] H:mm',
30 lll
: 'D MMM YYYY, H:mm',
31 LLLL
: 'dddd D MMMM [de] YYYY [a les] H:mm',
32 llll
: 'ddd D MMM YYYY, H:mm'
35 sameDay : function () {
36 return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
38 nextDay : function () {
39 return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
41 nextWeek : function () {
42 return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
44 lastDay : function () {
45 return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
47 lastWeek : function () {
48 return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
53 future
: 'd\'aquí %s',
68 dayOfMonthOrdinalParse
: /\d{1,2}(r|n|t|è|a)/,
69 ordinal : function (number
, period
) {
70 var output
= (number
=== 1) ? 'r' :
71 (number
=== 2) ? 'n' :
72 (number
=== 3) ? 'r' :
73 (number
=== 4) ? 't' : 'è';
74 if (period
=== 'w' || period
=== 'W') {
77 return number
+ output
;
80 dow
: 1, // Monday is the first day of the week.
81 doy
: 4 // The week that contains Jan 4th is the first week of the year.