Files
TREK/shared/src/i18n/uk/reservations.ts
T
Maurice 37a4e84360 feat: Apple Wallet passes for bookings
"Add to Apple Wallet" on a booking in the iOS app turns it into a TREK pass:
a boarding pass from and to for flights, trains, buses and boats, check-in and
check-out for a stay, pickup and drop-off for a car, the time for anything
else, with the confirmation code as a QR code. Wallet brings it up on the lock
screen around its time and place: times carry the offset of the endpoint's zone
(looked up from the coordinates where the endpoint has none), stays and
restaurants their place's coordinates. The labels come from the booking forms'
own strings, so nothing new to translate on the pass.

Only liketrek holds the Pass Type ID certificate, so the server sends the pass's
texts to the TREK services' signer (TREK_WALLET_PASS_URL, push.liketrek.com)
once per tap; it stores nothing, and TREK_SERVICES=off turns it off with the
other services. Texts are cleaned of links and shortened here, the answer must
be a .pkpass within 512 KB, and a user gets 20 passes a minute.

- New wallet-pass domain: GET /api/trips/:tripId/reservations/:id/wallet-pass
  behind the trip guard, the booking checked to belong to the trip; trip title
  and place come from the reservations domain (findPassContext)
- MWalletButton in the transport and booking sheets, only where the app binary
  has the wallet feature; undated bookings and failures are told apart
- TREK_WALLET_PASS_URL in .env.example, compose, Helm and the wiki
2026-11-07 11:25:19 +01:00

295 lines
21 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { TranslationStrings } from '../types';
const reservations: TranslationStrings = {
'reservations.title': 'Бронювання',
'reservations.empty': 'Поки немає бронювань',
'reservations.emptyHint': 'Додайте бронювання на авіаквитки, готелі та інше',
'reservations.add': 'Додати бронювання',
'reservations.addManual': 'Ручне бронювання',
'reservations.placeHint': 'Порада: бронювання краще створювати безпосередньо з місця, щоб пов’язати їх з планом дня.',
'reservations.confirmed': 'Підтверджено',
'reservations.pending': 'Очікування',
'reservations.summary': '{confirmed} підтвр., {pending} очікувань',
'reservations.showFiles': 'Показати файли',
'reservations.editTitle': 'Редагувати бронювання',
'reservations.status': 'Статус',
'reservations.datetime': 'Дата і час',
'reservations.startTime': 'Час початку',
'reservations.endTime': 'Час закінчення',
'reservations.date': 'Дата',
'reservations.time': 'Час',
'reservations.timeAlt': 'Час (альтернативний, напр. 19:30)',
'reservations.notes': 'Нотатки',
'reservations.notesPlaceholder': 'Додаткові нотатки...',
'reservations.meta.airline': 'Авіакомпанія',
'reservations.meta.flightNumber': 'Номер рейсу',
'reservations.meta.from': 'Звідки',
'reservations.meta.to': 'Куди',
'reservations.layover.route': 'Маршрут',
'reservations.layover.stop': 'Зупинка',
'reservations.layover.addStop': 'Додати зупинку',
'reservations.cruise.embark': 'Посадка',
'reservations.cruise.disembark': 'Висадка',
'reservations.cruise.port': 'Порт заходу',
'reservations.cruise.addPort': 'Додати порт',
'reservations.layover.connection': 'Пересадка',
'reservations.layover.layover': 'Очікування',
'reservations.needsReview': 'Перевірити',
'reservations.needsReviewHint': 'Аеропорт не вдалося визначити автоматично — підтвердіть місцезнаходження.',
'reservations.searchLocation': 'Шукати станцію, порт, адресу...',
'reservations.meta.trainNumber': 'Номер поїзда',
'reservations.meta.platform': 'Платформа',
'reservations.meta.seat': 'Місце',
'reservations.meta.checkIn': 'Заїзд',
'reservations.meta.checkInUntil': 'Заселення до',
'reservations.meta.checkOut': 'Виїзд',
'reservations.meta.linkAccommodation': 'Житло',
'reservations.meta.pickAccommodation': 'Прив’язати до житла',
'reservations.meta.noAccommodation': 'Ні',
'reservations.meta.hotelPlace': 'Житло',
'reservations.meta.linkPlace': 'Місце / Активність',
'reservations.meta.pickPlace': 'Вибрати місце / активність',
'reservations.meta.pickHotel': 'Оберіть житло',
'reservations.meta.fromDay': 'З',
'reservations.meta.toDay': 'По',
'reservations.meta.selectDay': 'Оберіть день',
'reservations.type.flight': 'Авіаквиток',
'reservations.type.hotel': 'Житло',
'reservations.type.restaurant': 'Ресторан',
'reservations.type.train': 'Поїзд',
'reservations.type.car': 'Автомобіль',
'reservations.type.cruise': 'Круїз',
'reservations.type.event': 'Заходи',
'reservations.type.tour': 'Екскурсія з гідом',
'reservations.type.parking': 'Паркування',
'reservations.type.other': 'Інше',
'reservations.type.bus': 'Автобус',
'reservations.type.ferry': 'Пором',
'reservations.type.cable_car': 'Канатна дорога',
'reservations.type.bicycle': 'Велосипед',
'reservations.type.taxi': 'Таксі',
'reservations.type.transit': 'Громадський транспорт',
'reservations.typeShort.transit': 'Громадський транспорт',
'reservations.type.transport_other': 'Інше',
'reservations.confirm.delete': 'Ви впевнені, що хочете видалити бронювання «{name}»?',
'reservations.confirm.deleteTitle': 'Видалити бронювання?',
'reservations.confirm.deleteBody': '«{name}» буде видалено назавжди.',
'reservations.confirm.deleteBodyWithExpense': '«{name}» і пов’язані з ним витрати буде видалено назавжди.',
'reservations.toast.updated': 'Бронювання оновлено',
'reservations.toast.removed': 'Бронювання видалено',
'reservations.toast.filesNotUploaded':
'Бронювання збережено, але деякі файли не завантажилися. Збережіть ще раз, щоб надіслати їх.',
'reservations.newTitle': 'Нове бронювання',
'reservations.bookingType': 'Тип бронювання',
'reservations.titleLabel': 'Назва',
'reservations.titlePlaceholder': 'наприклад, Lufthansa LH123, Hotel Adlon, ...',
'reservations.locationAddress': 'Місцезнаходження / Адреса',
'reservations.locationPlaceholder': 'Адреса, аеропорт, готель...',
'reservations.confirmationCode': 'Код бронювання',
'reservations.routeLabel': 'Маршрут',
'reservations.segmentCodes': 'Коди відрізків',
'reservations.confirmationPlaceholder': 'наприклад, ABC12345',
'reservations.day': 'День',
'reservations.noDay': 'Без дня',
'reservations.place': 'Місце',
'reservations.noPlace': 'Без місця',
'reservations.pendingSave': 'буде збережено…',
'reservations.uploading': 'Завантаження...',
'reservations.attachFile': 'Прикріпити файл',
'reservations.linkExisting': 'Прив’язати існуючий файл',
'reservations.toast.saveError': 'Помилка збереження',
'reservations.toast.updateError': 'Помилка оновлення',
'reservations.toast.deleteError': 'Помилка видалення',
'reservations.confirm.remove': 'Видалити бронювання для «{name}»?',
'reservations.linkAssignment': 'Прив’язати до призначення дня',
'reservations.linkedTo': 'Пов’язано з',
'reservations.pickAssignment': 'Оберіть призначення з вашого плану...',
'reservations.noAssignment': 'Без прив’язки (самостійно)',
'reservations.price': 'Ціна',
'reservations.budgetCategory': 'Категорія бюджету',
'reservations.budgetCategoryPlaceholder': 'наприклад, Транспорт, Проживання',
'reservations.budgetCategoryAuto': 'Авто (за типом бронювання)',
'reservations.budgetHint': 'При збереженні буде автоматично створено запис бюджету.',
'reservations.departureDate': 'Виліт',
'reservations.arrivalDate': 'Приліт',
'reservations.departureTime': 'Час вильоту',
'reservations.arrivalTime': 'Час прильоту',
'reservations.pickupDate': 'Отримання',
'reservations.returnDate': 'Повернення',
'reservations.pickupTime': 'Час отримання',
'reservations.returnTime': 'Час повернення',
'reservations.endDate': 'Дата закінчення',
'reservations.meta.departureTimezone': 'TZ вильоту',
'reservations.meta.arrivalTimezone': 'TZ прильоту',
'reservations.span.departure': 'Виліт',
'reservations.span.arrival': 'Приліт',
'reservations.span.inTransit': 'У дорозі',
'reservations.span.pickup': 'Отримання',
'reservations.span.dropOff': 'Здача',
'reservations.span.return': 'Повернення',
'reservations.span.active': 'Активно',
'reservations.span.start': 'Початок',
'reservations.span.end': 'Кінець',
'reservations.span.ongoing': 'Триває',
'reservations.validation.endBeforeStart': 'Дата/час закінчення повинен бути пізніше дати/часу початку',
'reservations.validation.endTimeBeforeStartTime':
'Час закінчення раніший за час початку. Якщо бронювання закінчується наступного дня, вкажіть дату закінчення.',
'reservations.addBooking': 'Додати бронювання',
'reservations.import.title': 'Імпорт підтверджень бронювання',
'reservations.import.cta': 'Імпортувати з файлу',
'reservations.import.dropHere': 'Перетягніть файли підтверджень бронювання сюди або натисніть для вибору',
'reservations.import.dropActive': 'Відпустіть файли для імпорту',
'reservations.import.pinSearching': 'Пошук на мапі…',
'reservations.import.pinFound': 'На мапі',
'reservations.import.pinMissingTitle': 'Поки немає на мапі',
'reservations.import.pinMissingBody':
'TREK не знайшов це житло на мапі. Перевірте назву й адресу вище та повторіть пошук або збережіть без позначки.',
'reservations.import.pinRetry': 'Шукати знову',
'reservations.import.savedWithoutPin':
'Збережено без позначки на мапі. Відредагуйте місце й укажіть його розташування, щоб побачити його на мапі.',
'reservations.import.acceptedFormats': 'Підтримуються: EML, PDF, PKPass, HTML, TXT (макс. 10 МБ кожен, до 5 файлів)',
'reservations.import.acceptedPhotos': 'Фотографії (JPG, PNG, WEBP) читає модель ШІ.',
'reservations.import.parsing': 'Обробка файлів…',
'reservations.import.previewHeading': 'Знайдено {count} бронювання',
'reservations.import.previewHeading.one': 'Знайдено {count} бронювання',
'reservations.import.previewHeading.few': 'Знайдено {count} бронювання',
'reservations.import.previewHeading.many': 'Знайдено {count} бронювань',
'reservations.import.previewEmpty': 'З завантажених файлів не вдалося витягти бронювання.',
'reservations.import.removeItem': 'Видалити',
'reservations.import.needsReview': 'Перевірити',
'reservations.import.tryAi': 'Розпізнати за допомогою ШІ',
'reservations.import.aiParsing': 'Розпізнавання за допомогою ШІ…',
'reservations.import.confirm': 'Імпортувати {count} бронювання',
'reservations.import.confirm.one': 'Імпортувати {count} бронювання',
'reservations.import.confirm.few': 'Імпортувати {count} бронювання',
'reservations.import.confirm.many': 'Імпортувати {count} бронювань',
'reservations.import.back': 'Назад',
'reservations.import.success': '{count} бронювання імпортовано',
'reservations.import.success.one': '{count} бронювання імпортовано',
'reservations.import.success.few': '{count} бронювання імпортовано',
'reservations.import.success.many': '{count} бронювань імпортовано',
'reservations.import.partialFailure': '{created} імпортовано, {failed} не вдалося',
'reservations.import.error': 'Обробка не вдалася. Переконайтесь, що файл є дійсним підтвердженням бронювання.',
'reservations.import.unavailable': 'Імпорт бронювань недоступний на цьому сервері.',
'reservations.import.unsupportedFormat':
'Непідтримуваний формат файлу. Використовуйте EML, PDF, PKPass, HTML або TXT.',
'reservations.import.fileTooLarge': 'Файл «{name}» перевищує обмеження в 10 МБ.',
'reservations.airtrail.title': 'Імпорт з AirTrail',
'reservations.airtrail.cta': 'AirTrail',
'reservations.airtrail.synced': 'AirTrail',
'reservations.airtrail.syncedHint': 'Синхронізовано з AirTrail — зміни синхронізуються в обидва боки.',
'reservations.airtrail.notSynced': 'Не синхронізовано',
'reservations.airtrail.notSyncedHint': 'Цей рейс було видалено в AirTrail і він більше не синхронізується.',
'reservations.airtrail.layoverHint':
'Імпортовано з AirTrail. Багатосегментний рейс із пересадкою не має єдиного рейсу AirTrail для синхронізації, тому залишається одноразовим імпортом.',
'reservations.airtrail.loadError': 'Не вдалося завантажити ваші рейси з AirTrail.',
'reservations.airtrail.imported': '{count} рейсу імпортовано',
'reservations.airtrail.imported.one': '{count} рейс імпортовано',
'reservations.airtrail.imported.few': '{count} рейси імпортовано',
'reservations.airtrail.imported.many': '{count} рейсів імпортовано',
'reservations.airtrail.skippedDuplicate': '{count} вже в цій подорожі, пропущено',
'reservations.airtrail.skippedDuplicate.one': '{count} вже в цій подорожі, пропущено',
'reservations.airtrail.skippedDuplicate.few': '{count} вже в цій подорожі, пропущено',
'reservations.airtrail.skippedDuplicate.many': '{count} вже в цій подорожі, пропущено',
'reservations.airtrail.nothingImported': 'Немає чого імпортувати.',
'reservations.airtrail.importError': 'Імпорт не вдався. Спробуйте ще раз.',
'reservations.airtrail.undo': 'Імпорт з AirTrail',
'reservations.airtrail.alreadyImported': 'Імпортовано',
'reservations.airtrail.duringTrip': 'Під час цієї подорожі',
'reservations.airtrail.otherFlights': 'Інші рейси',
'reservations.airtrail.empty': 'У вашому акаунті AirTrail не знайдено рейсів.',
'reservations.airtrail.importCta': 'Імпортувати {count}',
'reservations.airtrail.importCta.one': 'Імпортувати {count}',
'reservations.airtrail.importCta.few': 'Імпортувати {count}',
'reservations.airtrail.importCta.many': 'Імпортувати {count}',
'reservations.airtrail.joinConnection': 'Імпортувати як один рейс із пересадкою в {stops}',
'reservations.costsLabel': 'Витрати',
'reservations.createExpense': 'Створити витрату',
'reservations.createExpenseHint': 'Зберігає бронювання й відкриває редактор витрат.',
'reservations.linkedExpense': 'Прив’язана витрата',
'reservations.removeExpense': 'Прибрати витрату',
'reservations.linkedExpenses': 'Прив’язані витрати',
'reservations.linkExpense': 'Прив’язати існуючу витрату',
'reservations.unlinkExpense': 'Відв’язати, зберегти витрату',
'reservations.noUnlinkedExpenses': 'Немає неприв’язаних витрат',
'reservations.urlLabel': 'Посилання',
'reservations.urlPlaceholder': 'https://...',
'reservations.travelers.label': 'Мандрівники',
'reservations.travelers.assign': 'Призначити мандрівників',
'reservations.travelers.none': 'Поки немає учасників подорожі.',
'reservations.status.switchTo': 'Змінити на {status}',
'reservations.view.label': 'Вигляд',
'reservations.view.cards': 'Картки',
'reservations.view.list': 'Список',
'reservations.view.timeline': 'Хронологія',
'reservations.filter': 'Фільтр',
'reservations.searchPlaceholder': 'Пошук',
'reservations.results': '{shown} з {total}',
'reservations.resetFilters': 'Скинути фільтри',
'reservations.noMatches': 'Нічого не відповідає цим фільтрам',
'reservations.viewOptions': 'Параметри вигляду',
'reservations.exportCsv': 'Експортувати як таблицю (CSV)',
'reservations.export.type': 'Тип',
'reservations.export.title': 'Назва',
'reservations.export.start': 'Початок',
'reservations.export.end': 'Кінець',
'reservations.export.from': 'Звідки',
'reservations.export.to': 'Куди',
'reservations.export.location': 'Місце',
'reservations.export.confirmation': 'Підтвердження',
'reservations.export.notes': 'Нотатки',
'reservations.resetView': 'Скинути вигляд',
'reservations.group.label': 'Групувати за',
'reservations.group.status': 'Статус',
'reservations.group.day': 'День',
'reservations.group.type': 'Тип',
'reservations.group.none': 'Без групування',
'reservations.transitApart': 'Громадський транспорт окремим розділом',
'reservations.group.before': 'До подорожі',
'reservations.group.after': 'Після подорожі',
'reservations.group.undated': 'Без дати',
'reservations.sort.label': 'Сортувати за',
'reservations.sort.date': 'Дата',
'reservations.sort.title': 'Назва',
'reservations.sort.type': 'Тип',
'reservations.sort.status': 'Статус',
'reservations.sort.earlyFirst': 'Спершу найраніші',
'reservations.sort.lateFirst': 'Спершу найпізніші',
'reservations.sort.aToZ': 'Від А до Я',
'reservations.sort.zToA': 'Від Я до А',
'reservations.timeline.dayCount': '{count} дня',
'reservations.timeline.dayCount.one': '{count} день',
'reservations.timeline.dayCount.few': '{count} дні',
'reservations.timeline.dayCount.many': '{count} днів',
'reservations.timeline.zoom': 'Масштаб',
'reservations.timeline.trip': 'Подорож',
'reservations.timeline.day': 'День',
'reservations.timeline.prevDay': 'Попередній день',
'reservations.timeline.nextDay': 'Наступний день',
'reservations.timeline.openDay': 'Відкрити {day} погодинно',
'reservations.timeline.nothingThisDay': 'Цього дня нічого немає.',
'reservations.timeline.today': 'Сьогодні',
'reservations.timeline.now': 'зараз',
'reservations.timeline.byType': 'Окрема доріжка для кожного типу',
'reservations.timeline.context': 'Показувати й іншу вкладку',
'reservations.timeline.contextBookings': 'Бронювання',
'reservations.timeline.contextTransports': 'Транспорт',
'reservations.timeline.noneDated': 'Жодне з них ще не має дати.',
'reservations.undated': 'Без дати',
'reservations.nights': 'Ночі',
'reservations.start': 'Початок',
'reservations.end': 'Кінець',
'reservations.rename': 'Перейменувати',
'reservations.copyCode': 'Копіювати код бронювання',
'reservations.copyFailed': 'Не вдалося скопіювати',
'reservations.showInFiles': 'Показати у файлах',
'reservations.filesNeedConnection':
"Для завантаження файлів потрібне з'єднання. Видаліть нові, щоб зберегти бронювання офлайн, або збережіть, коли знову будете онлайн.",
'reservations.needsConnection': "Для цього потрібне з'єднання. Спробуйте ще раз, коли TREK знову буде онлайн.",
'reservations.exportCsvFiltered': 'Експортувати показані рядки: {shown} із {total} (CSV)',
'reservations.wallet.add': 'Додати до Apple Wallet',
'reservations.wallet.failed': 'Не вдалося створити картку Wallet. Повторіть спробу.',
'reservations.wallet.undated': 'Спершу вкажіть дату бронювання: Wallet показує картку ближче до цього часу.',
};
export default reservations;