UNPKG

2.07 kBJavaScriptView Raw
1(function (global, factory) {
2 typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3 typeof define === 'function' && define.amd ? define(['exports'], factory) :
4 (global = global || self, factory(global.cat = {}));
5}(this, (function (exports) { 'use strict';
6
7 var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8 ? window.flatpickr
9 : {
10 l10ns: {},
11 };
12 var Catalan = {
13 weekdays: {
14 shorthand: ["Dg", "Dl", "Dt", "Dc", "Dj", "Dv", "Ds"],
15 longhand: [
16 "Diumenge",
17 "Dilluns",
18 "Dimarts",
19 "Dimecres",
20 "Dijous",
21 "Divendres",
22 "Dissabte",
23 ],
24 },
25 months: {
26 shorthand: [
27 "Gen",
28 "Febr",
29 "Març",
30 "Abr",
31 "Maig",
32 "Juny",
33 "Jul",
34 "Ag",
35 "Set",
36 "Oct",
37 "Nov",
38 "Des",
39 ],
40 longhand: [
41 "Gener",
42 "Febrer",
43 "Març",
44 "Abril",
45 "Maig",
46 "Juny",
47 "Juliol",
48 "Agost",
49 "Setembre",
50 "Octubre",
51 "Novembre",
52 "Desembre",
53 ],
54 },
55 ordinal: function (nth) {
56 var s = nth % 100;
57 if (s > 3 && s < 21)
58 return "è";
59 switch (s % 10) {
60 case 1:
61 return "r";
62 case 2:
63 return "n";
64 case 3:
65 return "r";
66 case 4:
67 return "t";
68 default:
69 return "è";
70 }
71 },
72 firstDayOfWeek: 1,
73 time_24hr: true,
74 };
75 fp.l10ns.cat = fp.l10ns.ca = Catalan;
76 var cat = fp.l10ns;
77
78 exports.Catalan = Catalan;
79 exports.default = cat;
80
81 Object.defineProperty(exports, '__esModule', { value: true });
82
83})));