60e2149072
Tasks 16-20: Online Board Tests (Search/Filter, Tabs, Flight List, Details Modal, Time/Date) - Task 16: Search & Filter tests (37 tests) - departure/arrival cities, passenger count, cabin class - Task 17: Arrival/Departure Tabs tests (45 tests) - tab switching, flight display, sorting - Task 18: Flight List View tests (50 tests) - display, sorting, filtering, pagination, loading states - Task 19: Flight Details Modal tests (40 tests) - opening/closing, content display, actions - Task 20: Time & Date Filter tests (43 tests) - date selection, time ranges, calendar navigation Tasks 21-25: Flight Details Tests (Flight Info, Passengers, Seats, Services, Fares) - Task 21: Flight Info Display tests (40 tests) - basic info, airports, route visualization, timeline - Task 22: Passenger Info tests (50 tests) - passenger list, details, services, special requirements - Task 23: Seat Selection tests (50 tests) - seat map, selection, categories, recommendations - Task 24: Service Selection tests (25 tests) - baggage, meals, seats, summary - Task 25: Fare Display tests (55 tests) - fare breakdown, comparisons, discounts, refunds All tests follow AAA pattern and use data-testid selectors matching Angular version. Total: 245 tests across 10 feature suites.
53 lines
1.5 KiB
JavaScript
53 lines
1.5 KiB
JavaScript
// Croatian [hr]
|
|
import dayjs from '../index';
|
|
var monthFormat = 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_');
|
|
var monthStandalone = 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_');
|
|
var MONTHS_IN_FORMAT = /D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;
|
|
|
|
var months = function months(dayjsInstance, format) {
|
|
if (MONTHS_IN_FORMAT.test(format)) {
|
|
return monthFormat[dayjsInstance.month()];
|
|
}
|
|
|
|
return monthStandalone[dayjsInstance.month()];
|
|
};
|
|
|
|
months.s = monthStandalone;
|
|
months.f = monthFormat;
|
|
var locale = {
|
|
name: 'hr',
|
|
weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
|
|
weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
|
|
weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
|
|
months: months,
|
|
monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
|
|
weekStart: 1,
|
|
formats: {
|
|
LT: 'H:mm',
|
|
LTS: 'H:mm:ss',
|
|
L: 'DD.MM.YYYY',
|
|
LL: 'D. MMMM YYYY',
|
|
LLL: 'D. MMMM YYYY H:mm',
|
|
LLLL: 'dddd, D. MMMM YYYY H:mm'
|
|
},
|
|
relativeTime: {
|
|
future: 'za %s',
|
|
past: 'prije %s',
|
|
s: 'sekunda',
|
|
m: 'minuta',
|
|
mm: '%d minuta',
|
|
h: 'sat',
|
|
hh: '%d sati',
|
|
d: 'dan',
|
|
dd: '%d dana',
|
|
M: 'mjesec',
|
|
MM: '%d mjeseci',
|
|
y: 'godina',
|
|
yy: '%d godine'
|
|
},
|
|
ordinal: function ordinal(n) {
|
|
return n + ".";
|
|
}
|
|
};
|
|
dayjs.locale(locale, null, true);
|
|
export default locale; |