index.js
3.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function ordinalNumber(dirtyNumber) {
var number = Number(dirtyNumber);
return String(number).concat('.');
}
var eraValues = {
narrow: ['pr.n.e.', 'AD'],
abbreviated: ['pr. Kr.', 'po. Kr.'],
wide: ['Prije Krista', 'Poslije Krista']
};
var monthValues = {
narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'],
abbreviated: ['sij', 'velj', 'ožu', 'tra', 'svi', 'lip', 'srp', 'kol', 'ruj', 'lis', 'stu', 'pro'],
wide: ['siječanj', 'veljača', 'ožujak', 'travanj', 'svibanj', 'lipanj', 'srpanj', 'kolovoz', 'rujan', 'listopad', 'studeni', 'prosinac']
};
var formattingMonthValues = {
narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'],
abbreviated: ['sij', 'velj', 'ožu', 'tra', 'svi', 'lip', 'srp', 'kol', 'ruj', 'lis', 'stu', 'pro'],
wide: ['siječnja', 'veljače', 'ožujka', 'travnja', 'svibnja', 'lipnja', 'srpnja', 'kolovoza', 'rujna', 'listopada', 'studenog', 'prosinca']
};
var quarterValues = {
narrow: ['1.', '2.', '3.', '4.'],
abbreviated: ['1. kv.', '2. kv.', '3. kv.', '4. kv.'],
wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal']
};
var dayValues = {
narrow: ['N', 'P', 'U', 'S', 'Č', 'P', 'S'],
short: ['ned', 'pon', 'uto', 'sri', 'čet', 'pet', 'sub'],
abbreviated: ['ned', 'pon', 'uto', 'sri', 'čet', 'pet', 'sub'],
wide: ['nedjelja', 'ponedjeljak', 'utorak', 'srijeda', 'četvrtak', 'petak', 'subota']
};
var formattingDayPeriodValues = {
narrow: {
am: 'AM',
pm: 'PM',
midnight: 'ponoć',
noon: 'podne',
morning: 'ujutro',
afternoon: 'popodne',
evening: 'navečer',
night: 'noću'
},
abbreviated: {
am: 'AM',
pm: 'PM',
midnight: 'ponoć',
noon: 'podne',
morning: 'ujutro',
afternoon: 'popodne',
evening: 'navečer',
night: 'noću'
},
wide: {
am: 'AM',
pm: 'PM',
midnight: 'ponoć',
noon: 'podne',
morning: 'ujutro',
afternoon: 'poslije podne',
evening: 'navečer',
night: 'noću'
}
};
var dayPeriodValues = {
narrow: {
am: 'AM',
pm: 'PM',
midnight: 'ponoć',
noon: 'podne',
morning: 'ujutro',
afternoon: 'popodne',
evening: 'navečer',
night: 'noću'
},
abbreviated: {
am: 'AM',
pm: 'PM',
midnight: 'ponoć',
noon: 'podne',
morning: 'ujutro',
afternoon: 'popodne',
evening: 'navečer',
night: 'noću'
},
wide: {
am: 'AM',
pm: 'PM',
midnight: 'ponoć',
noon: 'podne',
morning: 'ujutro',
afternoon: 'poslije podne',
evening: 'navečer',
night: 'noću'
}
};
var localize = {
ordinalNumber: ordinalNumber,
era: (0, _index.default)({
values: eraValues,
defaultWidth: 'wide'
}),
quarter: (0, _index.default)({
values: quarterValues,
defaultWidth: 'wide',
argumentCallback: function (quarter) {
return Number(quarter) - 1;
}
}),
month: (0, _index.default)({
values: monthValues,
defaultWidth: 'wide',
formattingValues: formattingMonthValues,
defaultFormattingWidth: 'wide'
}),
day: (0, _index.default)({
values: dayValues,
defaultWidth: 'wide'
}),
dayPeriod: (0, _index.default)({
values: dayPeriodValues,
defaultWidth: 'wide',
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: 'wide'
})
};
var _default = localize;
exports.default = _default;
module.exports = exports.default;