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