Files
TREK/shared/src/i18n/tr/reservations.ts
T
Maurice 56655d53b4 AirTrail integration: import flights & two-way sync (#214) (#1158)
* feat(admin): register AirTrail as an integration addon

Off by default; toggle lives in Admin -> Addons with a Plane icon. The
per-user connection (URL + API key) follows in integration settings.

* feat(integrations): add per-user AirTrail connection

Settings -> Integrations gains an AirTrail section: instance URL + Bearer
API key (encrypted at rest via apiKeyCrypto), a self-signed-TLS opt-in and
a test-connection check. Served by a small Nest controller under
/api/integrations/airtrail, gated on the airtrail addon and SSRF-guarded.
The key is per-user, so it only ever returns that user's own flights.

* feat(transport): import flights from AirTrail

Adds an AirTrail Import button next to Manual Transport that lists the
user's AirTrail flights and highlights the ones inside the trip dates.
Selected flights become reservations linked to their AirTrail origin
(external_* columns), deduped against flights already in the trip, then
broadcast to every member. The mapping resolves airports, airport-local
times and flight metadata; the linkage is what the two-way sync rides on.

* feat(transport): badge AirTrail-linked flights as synced

Linked reservations show an 'AirTrail synced' badge, or 'no longer
synced' once the flight is gone from AirTrail.

* feat(transport): keep TREK and AirTrail flights in sync both ways

A scheduled poll reconciles each connected owner's flights: field edits
(detected by snapshot hash, since AirTrail has no updated_at) flow into
the linked reservation and broadcast live; a flight deleted in AirTrail
keeps the TREK row but stops syncing. Editing a linked flight in TREK
pushes back to AirTrail under the importer's credentials, preserving the
existing seat manifest; if the owner disconnected the link detaches so the
poll can't revert the local edit. Deleting in TREK never touches AirTrail.

* i18n(airtrail): add AirTrail strings across all locales

* test(airtrail): cover flight mapping, timezones and snapshot hashing

* fix(airtrail): reduce airline/aircraft objects to codes

The flight list/get response returns airline and aircraft as joined
objects ({icao, iata, name, ...}), not bare codes. Mapping them straight
through produced '[object Object]' titles and stored objects in metadata,
which crashed reservation rendering. Extract the ICAO/IATA code instead,
and title flights by their flight number.

* fix(airtrail): clear error on non-JSON responses, tolerate /api in URL

A misconfigured instance URL made AirTrail serve its SPA/login HTML, and
the raw JSON.parse failure surfaced as 'Unexpected token <'. Surface an
actionable message instead, and strip a pasted trailing /api so the base
URL still resolves.

* feat(transport): sync AirTrail edits on trip open, not just on the poll

Add a per-user on-demand sync (POST /integrations/airtrail/sync) triggered
when a connected user opens a trip, so AirTrail-side edits appear right away
instead of waiting up to a full poll cycle. Lower the background poll from 15
to 5 minutes as a safety net.

* fix(transport): refresh imported AirTrail flights without a reload

loadTrip doesn't fetch reservations, so a freshly imported flight only
appeared after a full page reload — use loadReservations instead. Also show
flight dates in the user's locale format (e.g. 13.06.2026) rather than the
raw ISO string.

* style(settings): align AirTrail connection with the photo-provider layout

Match the Immich section: stacked URL/key fields, a ToggleSwitch for
self-signed TLS, and a Save / Test-connection row with a status badge.

* feat(transport): add a seat field when editing flights

The transport editor only offered a seat field for trains; flights had
none even though imports store metadata.seat. Show and persist a seat for
flights too.

* style(transport): match the AirTrail button height to Manual Transport

* feat(transport): put the flight seat next to flight number and sync it to AirTrail

Move the seat from a standalone row to the per-leg flight details (beside
the flight number), stored per leg in metadata.legs[].seat with the first
leg mirrored to metadata.seat. On push, set the seat number on the user's
own AirTrail seat (the one with a userId), leaving co-passengers untouched;
import/poll read that same seat back.

* refactor(planner): move the AirTrail trip-open sync into useTripPlanner

Page containers must not own state/effects (lint:pages). Same logic,
relocated from the page into its data hook.

* test(db): pin the region-reconciliation test to its schema version

The test re-ran 'the last migration' assuming the reconciliation is last;
it no longer is once later migrations are appended. Pin to version 135 and
re-run from there (the appended migrations are idempotent).
2026-06-13 13:11:35 +02:00

164 lines
8.7 KiB
TypeScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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': 'Rezervasyonlar',
'reservations.empty': 'Henüz rezervasyon yok',
'reservations.emptyHint':
'Uçuşlar, oteller ve daha fazlası için rezervasyon ekleyin',
'reservations.add': 'Rezervasyon Ekle',
'reservations.addManual': 'Manuel Rezervasyon',
'reservations.placeHint':
'İpucu: Rezervasyonları doğrudan günlük planınıza bağlayacak bir yerden oluşturmak en iyisidir.',
'reservations.confirmed': 'Onaylandı',
'reservations.pending': 'Askıda olması',
'reservations.summary': '{confirmed} onaylandı, {pending} beklemede',
'reservations.fromPlan': 'Plandan',
'reservations.showFiles': 'Dosyaları Göster',
'reservations.editTitle': 'Rezervasyonu Düzenle',
'reservations.status': 'Durum',
'reservations.datetime': 'Tarih ve Saat',
'reservations.startTime': 'Başlangıç zamanı',
'reservations.endTime': 'Bitiş zamanı',
'reservations.date': 'Tarih',
'reservations.time': 'Zaman',
'reservations.timeAlt': 'Saat (alternatif, örneğin 19:30)',
'reservations.notes': 'Notlar',
'reservations.notesPlaceholder': 'Ek notlar...',
'reservations.meta.airline': 'Havayolu',
'reservations.meta.flightNumber': 'Uçuş No.',
'reservations.meta.from': 'İtibaren',
'reservations.meta.to': 'İle',
'reservations.layover.route': 'Rota',
'reservations.layover.stop': 'Durak',
'reservations.layover.addStop': 'Durak ekle',
'reservations.layover.connection': 'Aktarma',
'reservations.layover.layover': 'Aktarma bekleme süresi',
'reservations.needsReview': 'Gözden geçirmek',
'reservations.needsReviewHint':
'Havaalanı otomatik olarak eşleştirilemedi; lütfen konumu onaylayın.',
'reservations.searchLocation': 'İstasyonu, limanı, adresi arayın…',
'reservations.meta.trainNumber': 'Tren No.',
'reservations.meta.platform': 'Platformu',
'reservations.meta.seat': 'Koltuk',
'reservations.meta.checkIn': 'Giriş',
'reservations.meta.checkInUntil': 'Giriş tarihi şu tarihe kadar:',
'reservations.meta.checkOut': 'Çıkış yapmak',
'reservations.meta.linkAccommodation': 'Konaklama',
'reservations.meta.pickAccommodation': 'Konaklama bağlantısı',
'reservations.meta.noAccommodation': 'Hiçbiri',
'reservations.meta.hotelPlace': 'Konaklama',
'reservations.meta.pickHotel': 'Konaklama seçin',
'reservations.meta.fromDay': 'İtibaren',
'reservations.meta.toDay': 'İle',
'reservations.meta.selectDay': 'Günü seçin',
'reservations.type.flight': 'Uçuş',
'reservations.type.hotel': 'Konaklama',
'reservations.type.restaurant': 'Restoran',
'reservations.type.train': 'Tren',
'reservations.type.car': 'Araba',
'reservations.type.cruise': 'Dolaşmak',
'reservations.type.event': 'Etkinlik',
'reservations.type.tour': 'Tur',
'reservations.type.other': 'Diğer',
'reservations.type.bus': 'Otobüs',
'reservations.type.ferry': 'Feribot',
'reservations.type.bicycle': 'Bisiklet',
'reservations.type.taxi': 'Taksi',
'reservations.type.transport_other': 'Diğer',
'reservations.confirm.delete':
'"{name}" rezervasyonunu silmek istediğinizden emin misiniz?',
'reservations.confirm.deleteTitle': 'Rezervasyon silinsin mi?',
'reservations.confirm.deleteBody': '"{name}" kalıcı olarak silinecek.',
'reservations.toast.updated': 'Rezervasyon güncellendi',
'reservations.toast.removed': 'Rezervasyon silindi',
'reservations.toast.fileUploaded': 'Dosya yüklendi',
'reservations.toast.uploadError': 'Yükleme başarısız oldu',
'reservations.newTitle': 'Yeni Rezervasyon',
'reservations.bookingType': 'Rezervasyon Türü',
'reservations.titleLabel': 'Başlık',
'reservations.titlePlaceholder': 'örneğin Lufthansa LH123, Otel Adlon, ...',
'reservations.locationAddress': 'Konum / Adres',
'reservations.locationPlaceholder': 'Adres, Havaalanı, Otel...',
'reservations.confirmationCode': 'Rezervasyon Kodu',
'reservations.confirmationPlaceholder': 'örn. ABC12345',
'reservations.day': 'Gün',
'reservations.noDay': 'Gün Yok',
'reservations.place': 'Yer',
'reservations.noPlace': 'Yer Yok',
'reservations.pendingSave': 'kaydedilecek…',
'reservations.uploading': 'Yükleniyor...',
'reservations.attachFile': 'Dosya ekle',
'reservations.linkExisting': 'Mevcut dosyayı bağla',
'reservations.toast.saveError': 'Kaydedilemedi',
'reservations.toast.updateError': 'Güncelleme başarısız oldu',
'reservations.toast.deleteError': 'Silinemedi',
'reservations.confirm.remove': '"{name}" için rezervasyon kaldırılsın mı?',
'reservations.linkAssignment': 'Gün atamasına bağla',
'reservations.pickAssignment': 'Planınızdan bir atama seçin...',
'reservations.noAssignment': 'Bağlantı yok (bağımsız)',
'reservations.price': 'Fiyat',
'reservations.budgetCategory': 'Bütçe kategorisi',
'reservations.budgetCategoryPlaceholder': 'örn. Ulaşım, Konaklama',
'reservations.budgetCategoryAuto': 'Otomatik (rezervasyon türünden)',
'reservations.budgetHint':
'Kaydederken otomatik olarak bir bütçe kaydı oluşturulur.',
'reservations.departureDate': 'Kalkış',
'reservations.arrivalDate': 'Varış',
'reservations.departureTime': 'Kalkış saati',
'reservations.arrivalTime': 'Varış saati',
'reservations.pickupDate': 'Alış',
'reservations.returnDate': 'İade',
'reservations.pickupTime': 'Alış saati',
'reservations.returnTime': 'İade saati',
'reservations.endDate': 'Bitiş tarihi',
'reservations.meta.departureTimezone': 'Kalkış SD',
'reservations.meta.arrivalTimezone': 'Varış SD',
'reservations.span.departure': 'Kalkış',
'reservations.span.arrival': 'Varış',
'reservations.span.inTransit': 'Yolda',
'reservations.span.pickup': 'Alış',
'reservations.span.return': 'İade',
'reservations.span.active': 'Aktif',
'reservations.span.start': 'Başlangıç',
'reservations.span.end': 'Son',
'reservations.span.ongoing': 'Devam ediyor',
'reservations.validation.endBeforeStart':
'Bitiş tarihi/saati başlangıçtan sonra olmalı',
'reservations.addBooking': 'Rezervasyon ekle',
'reservations.import.title': 'Rezervasyon onaylarını içe aktar',
'reservations.import.cta': 'Dosyadan içe aktar',
'reservations.import.dropHere': 'Rezervasyon onay dosyalarını buraya sürükleyin veya seçmek için tıklayın',
'reservations.import.dropActive': 'İçe aktarmak için dosyaları bırakın',
'reservations.import.acceptedFormats': 'Kabul edilenler: EML, PDF, PKPass, HTML, TXT (her biri maks. 10 MB, en fazla 5 dosya)',
'reservations.import.parsing': 'Dosyalar işleniyor…',
'reservations.import.previewHeading': '{count} rezervasyon bulundu',
'reservations.import.previewEmpty': 'Yüklenen dosyalardan hiçbir rezervasyon çıkarılamadı.',
'reservations.import.removeItem': 'Kaldır',
'reservations.import.confirm': '{count} rezervasyonu içe aktar',
'reservations.import.back': 'Geri',
'reservations.import.success': '{count} rezervasyon içe aktarıldı',
'reservations.import.partialFailure': '{created} içe aktarıldı, {failed} başarısız',
'reservations.import.error': 'İşlem başarısız. Dosyanın geçerli bir rezervasyon onayı olduğundan emin olun.',
'reservations.import.unavailable': 'Rezervasyon içe aktarma bu sunucuda mevcut değil.',
'reservations.import.unsupportedFormat': 'Desteklenmeyen dosya biçimi. EML, PDF, PKPass, HTML veya TXT kullanın.',
'reservations.import.fileTooLarge': '"{name}" dosyası 10 MB sınırını aşıyor.',
'reservations.airtrail.title': 'AirTrail\'den içe aktar',
'reservations.airtrail.cta': 'AirTrail',
'reservations.airtrail.synced': 'AirTrail',
'reservations.airtrail.syncedHint': 'AirTrail ile senkronize edildi — düzenlemeler iki yönlü olarak senkronize kalır.',
'reservations.airtrail.notSynced': 'Senkronize değil',
'reservations.airtrail.notSyncedHint': 'Bu uçuş AirTrail\'de kaldırıldı ve artık senkronize edilmiyor.',
'reservations.airtrail.loadError': 'AirTrail uçuşlarınız yüklenemedi.',
'reservations.airtrail.imported': '{count} uçuş içe aktarıldı',
'reservations.airtrail.skippedDuplicate': '{count} zaten bu gezide, atlandı',
'reservations.airtrail.nothingImported': 'İçe aktarılacak bir şey yok.',
'reservations.airtrail.importError': 'İçe aktarma başarısız. Lütfen tekrar deneyin.',
'reservations.airtrail.undo': 'AirTrail\'den içe aktar',
'reservations.airtrail.alreadyImported': 'İçe aktarıldı',
'reservations.airtrail.duringTrip': 'Bu gezi sırasında',
'reservations.airtrail.otherFlights': 'Diğer uçuşlar',
'reservations.airtrail.empty': 'AirTrail hesabınızda uçuş bulunamadı.',
'reservations.airtrail.importCta': '{count} içe aktar',
};
export default reservations;