Upgrade moment from 2.19.3 to 2.24.0
[lhc/web/wiklou.git] / resources / lib / moment / locale / ca.js
1 //! moment.js locale configuration
2
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) :
7 factory(global.moment)
8 }(this, (function (moment) { 'use strict';
9
10
11 var ca = moment.defineLocale('ca', {
12 months : {
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/
16 },
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,
23 longDateFormat : {
24 LT : 'H:mm',
25 LTS : 'H:mm:ss',
26 L : 'DD/MM/YYYY',
27 LL : 'D MMMM [de] YYYY',
28 ll : 'D MMM 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'
33 },
34 calendar : {
35 sameDay : function () {
36 return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
37 },
38 nextDay : function () {
39 return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
40 },
41 nextWeek : function () {
42 return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
43 },
44 lastDay : function () {
45 return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
46 },
47 lastWeek : function () {
48 return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
49 },
50 sameElse : 'L'
51 },
52 relativeTime : {
53 future : 'd\'aquí %s',
54 past : 'fa %s',
55 s : 'uns segons',
56 ss : '%d segons',
57 m : 'un minut',
58 mm : '%d minuts',
59 h : 'una hora',
60 hh : '%d hores',
61 d : 'un dia',
62 dd : '%d dies',
63 M : 'un mes',
64 MM : '%d mesos',
65 y : 'un any',
66 yy : '%d anys'
67 },
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') {
75 output = 'a';
76 }
77 return number + output;
78 },
79 week : {
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.
82 }
83 });
84
85 return ca;
86
87 })));