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', {
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 monthsParseExact
: true,
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('_'),
20 weekdaysParseExact
: true,
26 LLL
: 'D MMMM YYYY H:mm',
27 LLLL
: 'dddd D MMMM YYYY H:mm'
30 sameDay : function () {
31 return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
33 nextDay : function () {
34 return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
36 nextWeek : function () {
37 return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
39 lastDay : function () {
40 return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
42 lastWeek : function () {
43 return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
62 ordinalParse
: /\d{1,2}(r|n|t|è|a)/,
63 ordinal : function (number
, period
) {
64 var output
= (number
=== 1) ? 'r' :
65 (number
=== 2) ? 'n' :
66 (number
=== 3) ? 'r' :
67 (number
=== 4) ? 't' : 'è';
68 if (period
=== 'w' || period
=== 'W') {
71 return number
+ output
;
74 dow
: 1, // Monday is the first day of the week.
75 doy
: 4 // The week that contains Jan 4th is the first week of the year.