2016-02-06 04:42:48 +08:00
|
|
|
//! moment.js locale configuration
|
2020-11-11 09:34:26 +08:00
|
|
|
//! locale : Catalan [ca]
|
|
|
|
//! author : Juan G. Hurtado : https://github.com/juanghurtado
|
2014-08-21 02:41:50 +08:00
|
|
|
|
2016-02-06 04:42:48 +08:00
|
|
|
;(function (global, factory) {
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
2017-04-20 12:24:20 +08:00
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
2016-02-06 04:42:48 +08:00
|
|
|
factory(global.moment)
|
2017-04-20 12:24:20 +08:00
|
|
|
}(this, (function (moment) { 'use strict';
|
2016-02-06 04:42:48 +08:00
|
|
|
|
2020-11-11 09:34:26 +08:00
|
|
|
//! moment.js locale configuration
|
2016-02-06 04:42:48 +08:00
|
|
|
|
2018-04-26 15:15:53 +08:00
|
|
|
var ca = moment.defineLocale('ca', {
|
2020-11-11 09:34:26 +08:00
|
|
|
months: {
|
2022-04-12 01:27:24 +08:00
|
|
|
standalone:
|
|
|
|
'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
|
|
|
|
'_'
|
|
|
|
),
|
2020-11-11 09:34:26 +08:00
|
|
|
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(
|
|
|
|
'_'
|
|
|
|
),
|
|
|
|
isFormat: /D[oD]?(\s)+MMMM/,
|
2014-08-21 02:41:50 +08:00
|
|
|
},
|
2022-04-12 01:27:24 +08:00
|
|
|
monthsShort:
|
|
|
|
'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(
|
|
|
|
'_'
|
|
|
|
),
|
2020-11-11 09:34:26 +08:00
|
|
|
monthsParseExact: true,
|
2022-04-12 01:27:24 +08:00
|
|
|
weekdays:
|
|
|
|
'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(
|
|
|
|
'_'
|
|
|
|
),
|
2020-11-11 09:34:26 +08:00
|
|
|
weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
|
|
|
|
weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
|
|
|
|
weekdaysParseExact: true,
|
|
|
|
longDateFormat: {
|
|
|
|
LT: 'H:mm',
|
|
|
|
LTS: 'H:mm:ss',
|
|
|
|
L: 'DD/MM/YYYY',
|
|
|
|
LL: 'D MMMM [de] YYYY',
|
|
|
|
ll: 'D MMM YYYY',
|
|
|
|
LLL: 'D MMMM [de] YYYY [a les] H:mm',
|
|
|
|
lll: 'D MMM YYYY, H:mm',
|
|
|
|
LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
|
|
|
|
llll: 'ddd D MMM YYYY, H:mm',
|
2014-08-21 02:41:50 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
calendar: {
|
|
|
|
sameDay: function () {
|
|
|
|
return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
|
2018-04-26 15:15:53 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
nextDay: function () {
|
|
|
|
return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
|
2018-04-26 15:15:53 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
nextWeek: function () {
|
|
|
|
return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
|
2018-04-26 15:15:53 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
lastDay: function () {
|
|
|
|
return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
|
2018-04-26 15:15:53 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
lastWeek: function () {
|
|
|
|
return (
|
|
|
|
'[el] dddd [passat a ' +
|
|
|
|
(this.hours() !== 1 ? 'les' : 'la') +
|
|
|
|
'] LT'
|
|
|
|
);
|
2018-04-26 15:15:53 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
sameElse: 'L',
|
2016-02-06 04:42:48 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
relativeTime: {
|
|
|
|
future: "d'aquí %s",
|
|
|
|
past: 'fa %s',
|
|
|
|
s: 'uns segons',
|
|
|
|
ss: '%d segons',
|
|
|
|
m: 'un minut',
|
|
|
|
mm: '%d minuts',
|
|
|
|
h: 'una hora',
|
|
|
|
hh: '%d hores',
|
|
|
|
d: 'un dia',
|
|
|
|
dd: '%d dies',
|
|
|
|
M: 'un mes',
|
|
|
|
MM: '%d mesos',
|
|
|
|
y: 'un any',
|
|
|
|
yy: '%d anys',
|
2014-08-21 02:41:50 +08:00
|
|
|
},
|
2018-04-26 15:15:53 +08:00
|
|
|
dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
|
2020-11-11 09:34:26 +08:00
|
|
|
ordinal: function (number, period) {
|
|
|
|
var output =
|
|
|
|
number === 1
|
|
|
|
? 'r'
|
|
|
|
: number === 2
|
2024-03-11 10:04:51 +08:00
|
|
|
? 'n'
|
|
|
|
: number === 3
|
|
|
|
? 'r'
|
|
|
|
: number === 4
|
|
|
|
? 't'
|
|
|
|
: 'è';
|
2018-04-26 15:15:53 +08:00
|
|
|
if (period === 'w' || period === 'W') {
|
|
|
|
output = 'a';
|
|
|
|
}
|
|
|
|
return number + output;
|
2017-04-20 12:24:20 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
week: {
|
|
|
|
dow: 1, // Monday is the first day of the week.
|
|
|
|
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
|
|
},
|
2018-04-26 15:15:53 +08:00
|
|
|
});
|
2016-02-06 04:42:48 +08:00
|
|
|
|
2018-04-26 15:15:53 +08:00
|
|
|
return ca;
|
2016-02-06 04:42:48 +08:00
|
|
|
|
2017-04-20 12:24:20 +08:00
|
|
|
})));
|