1 |
|
2 |
|
3 |
|
4 |
|
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) :
|
9 | factory(global.moment)
|
10 | }(this, (function (moment) { 'use strict';
|
11 |
|
12 |
|
13 |
|
14 | var ocLnc = moment.defineLocale('oc-lnc', {
|
15 | months: {
|
16 | standalone:
|
17 | 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
|
18 | '_'
|
19 | ),
|
20 | format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split(
|
21 | '_'
|
22 | ),
|
23 | isFormat: /D[oD]?(\s)+MMMM/,
|
24 | },
|
25 | monthsShort:
|
26 | 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
|
27 | '_'
|
28 | ),
|
29 | monthsParseExact: true,
|
30 | weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
|
31 | '_'
|
32 | ),
|
33 | weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
|
34 | weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
|
35 | weekdaysParseExact: true,
|
36 | longDateFormat: {
|
37 | LT: 'H:mm',
|
38 | LTS: 'H:mm:ss',
|
39 | L: 'DD/MM/YYYY',
|
40 | LL: 'D MMMM [de] YYYY',
|
41 | ll: 'D MMM YYYY',
|
42 | LLL: 'D MMMM [de] YYYY [a] H:mm',
|
43 | lll: 'D MMM YYYY, H:mm',
|
44 | LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
|
45 | llll: 'ddd D MMM YYYY, H:mm',
|
46 | },
|
47 | calendar: {
|
48 | sameDay: '[uèi a] LT',
|
49 | nextDay: '[deman a] LT',
|
50 | nextWeek: 'dddd [a] LT',
|
51 | lastDay: '[ièr a] LT',
|
52 | lastWeek: 'dddd [passat a] LT',
|
53 | sameElse: 'L',
|
54 | },
|
55 | relativeTime: {
|
56 | future: "d'aquí %s",
|
57 | past: 'fa %s',
|
58 | s: 'unas segondas',
|
59 | ss: '%d segondas',
|
60 | m: 'una minuta',
|
61 | mm: '%d minutas',
|
62 | h: 'una ora',
|
63 | hh: '%d oras',
|
64 | d: 'un jorn',
|
65 | dd: '%d jorns',
|
66 | M: 'un mes',
|
67 | MM: '%d meses',
|
68 | y: 'un an',
|
69 | yy: '%d ans',
|
70 | },
|
71 | dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
|
72 | ordinal: function (number, period) {
|
73 | var output =
|
74 | number === 1
|
75 | ? 'r'
|
76 | : number === 2
|
77 | ? 'n'
|
78 | : number === 3
|
79 | ? 'r'
|
80 | : number === 4
|
81 | ? 't'
|
82 | : 'è';
|
83 | if (period === 'w' || period === 'W') {
|
84 | output = 'a';
|
85 | }
|
86 | return number + output;
|
87 | },
|
88 | week: {
|
89 | dow: 1,
|
90 | doy: 4,
|
91 | },
|
92 | });
|
93 |
|
94 | return ocLnc;
|
95 |
|
96 | })));
|