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';
12 //! moment.js locale configuration
14 var ca = moment.defineLocale('ca', {
16 standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
19 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(
22 isFormat: /D[oD]?(\s)+MMMM/,
24 monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(
27 monthsParseExact: true,
28 weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(
31 weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
32 weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
33 weekdaysParseExact: true,
38 LL: 'D MMMM [de] YYYY',
40 LLL: 'D MMMM [de] YYYY [a les] H:mm',
41 lll: 'D MMM YYYY, H:mm',
42 LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
43 llll: 'ddd D MMM YYYY, H:mm',
46 sameDay: function () {
47 return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
49 nextDay: function () {
50 return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
52 nextWeek: function () {
53 return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
55 lastDay: function () {
56 return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
58 lastWeek: function () {
60 '[el] dddd [passat a ' +
61 (this.hours() !== 1 ? 'les' : 'la') +
83 dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
84 ordinal: function (number, period) {
95 if (period === 'w' || period === 'W') {
98 return number + output;
101 dow: 1, // Monday is the first day of the week.
102 doy: 4, // The week that contains Jan 4th is the first week of the year.