1 |
|
2 | import dayjs from '../index';
|
3 | var locale = {
|
4 | name: 'ca',
|
5 | weekdays: 'Diumenge_Dilluns_Dimarts_Dimecres_Dijous_Divendres_Dissabte'.split('_'),
|
6 | weekdaysShort: 'Dg._Dl._Dt._Dc._Dj._Dv._Ds.'.split('_'),
|
7 | weekdaysMin: 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'),
|
8 | months: 'Gener_Febrer_Març_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre'.split('_'),
|
9 | monthsShort: 'Gen._Febr._Març_Abr._Maig_Juny_Jul._Ag._Set._Oct._Nov._Des.'.split('_'),
|
10 | weekStart: 1,
|
11 | formats: {
|
12 | LT: 'H:mm',
|
13 | LTS: 'H:mm:ss',
|
14 | L: 'DD/MM/YYYY',
|
15 | LL: 'D MMMM [de] YYYY',
|
16 | LLL: 'D MMMM [de] YYYY [a les] H:mm',
|
17 | LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
|
18 | ll: 'D MMM YYYY',
|
19 | lll: 'D MMM YYYY, H:mm',
|
20 | llll: 'ddd D MMM YYYY, H:mm'
|
21 | },
|
22 | relativeTime: {
|
23 | future: 'd\'aquí %s',
|
24 | past: 'fa %s',
|
25 | s: 'uns segons',
|
26 | m: 'un minut',
|
27 | mm: '%d minuts',
|
28 | h: 'una hora',
|
29 | hh: '%d hores',
|
30 | d: 'un dia',
|
31 | dd: '%d dies',
|
32 | M: 'un mes',
|
33 | MM: '%d mesos',
|
34 | y: 'un any',
|
35 | yy: '%d anys'
|
36 | },
|
37 | ordinal: function ordinal(n) {
|
38 | var ord;
|
39 | if (n === 1 || n === 3) ord = 'r';else if (n === 2) ord = 'n';else if (n === 4) ord = 't';else ord = 'è';
|
40 | return "" + n + ord;
|
41 | }
|
42 | };
|
43 | dayjs.locale(locale, null, true);
|
44 | export default locale; |
\ | No newline at end of file |